asciidoctor / atom-asciidoc-preview

⚛ AsciiDoc preview for the Atom editor.
https://atom.io/packages/asciidoc-preview
MIT License
142 stars 42 forks source link

HTMLDocument.registerElement is deprecated. #316

Open Axelod opened 2 years ago

Axelod commented 2 years ago

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/ernesto/.atom/packages/asciidoc-preview/node_modules/space-pen/lib/space-pen.js:66:88)
Builder.openTag (/home/ernesto/.atom/packages/asciidoc-preview/node_modules/space-pen/lib/space-pen.js:297:27)
Builder.tag (/home/ernesto/.atom/packages/asciidoc-preview/node_modules/space-pen/lib/space-pen.js:274:12)
Function.div (/home/ernesto/.atom/packages/asciidoc-preview/node_modules/space-pen/lib/space-pen.js:83:49)
Function.content (/home/ernesto/.atom/packages/asciidoc-preview/lib/asciidoc-preview-view.coffee:28:19)
yoarch commented 2 years ago

Same issue here under Archlinux everything up to date.