Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTMLDocument.registerElement is deprecated. #437

Open
somepaulo opened this issue Apr 8, 2022 · 2 comments
Open

HTMLDocument.registerElement is deprecated. #437

somepaulo opened this issue Apr 8, 2022 · 2 comments

Comments

@somepaulo
Copy link

Use customElements.define instead of document.registerElement see https://javascript.info/custom-elements

HTMLDocument.registerElement (file:///usr/lib/atom/static/index.js:166:12)
registerElement (/home/user/.atom/packages/ftp-remote-edit/node_modules/space-pen/lib/space-pen.js:66:88)
Builder.openTag (/home/user/.atom/packages/ftp-remote-edit/node_modules/space-pen/lib/space-pen.js:297:27)
Builder.tag (/home/user/.atom/packages/ftp-remote-edit/node_modules/space-pen/lib/space-pen.js:274:12)
Function.div (/home/user/.atom/packages/ftp-remote-edit/node_modules/space-pen/lib/space-pen.js:83:49)
Function.content (/home/user/.atom/packages/ftp-remote-edit/lib/views/tree-view.js:769:19)
@softokan
Copy link

node_modules\space-pen\lib\space-pen.js

66 : _base[customTagName] = typeof document.querySelector === "function" ? document.querySelector(customTagName, {

@nocturnalguru
Copy link

on pulsar got the following:

Deprecated calls
ftp-remote-edit (1 deprecation)
Use customElements.define instead of document.registerElement see https://javascript.info/custom-elements

HTMLDocument.registerElement - file:///opt/Pulsar/resources/app.asar/static/index.js:100:12
registerElement - /home/pjiggy/.pulsar/packages/ftp-remote-edit/node_modules/space-pen/lib/space-pen.js:66:88
Builder.openTag - /home/pjiggy/.pulsar/packages/ftp-remote-edit/node_modules/space-pen/lib/space-pen.js:297:27
Builder.tag - /home/pjiggy/.pulsar/packages/ftp-remote-edit/node_modules/space-pen/lib/space-pen.js:274:12
Function.div - /home/pjiggy/.pulsar/packages/ftp-remote-edit/node_modules/space-pen/lib/space-pen.js:83:49
Function.content - /home/pjiggy/.pulsar/packages/ftp-remote-edit/lib/views/tree-view.js:21:17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants