Closed
Description
Hello,
I'd like for there to be an available, working examples of autonomous and customized Custom Elements made without use of the class
syntax. The Mozilla MDN page for example shows a use of Object.create(HTMLElement.prototype) to create an autonomous custom element on it's Custom Elements page that satisfies this non-class based way of working, however that example doesn't work- it yields Uncaught TypeError: Failed to execute 'define' on 'CustomElementRegistry': The callback provided as parameter 2 is not a function.
on customElement.define("my-tag", MyTag).
What is a valid syntax to use now, for creating autonomous and customized Custom Elements? Might we add some examples of such in to the spec?
Metadata
Metadata
Assignees
Labels
No labels