Elliott @techytacos.dev · Dec 10

Ackchyually 🤓👆 HTMLUnknownElement will never upgrade to a custom element. Any element with a hyphen in its tag name is made an HTMLElement as to not convolute the inheritance chain

6 likes 2 replies

?

Replies

Danny Engelman 🌷🏍️🛥️ · Dec 10

> HTMLUnknownElement will NEVER upgrade > to a custom element. Then WHEN/HOW does <my-element> a HTMLUnknownElement, (which by default extends from HTMLElement) become a Custom Element ❓❓❓ eg. when the define <script> is loaded with defer

Nathan Knowler · Dec 10

haha, ya I wasn’t referring to its DOM interface. But now that I look at the spec again, I don’t see “unknown element” used to describe elements that haven’t been defined as custom elements. It still is clear a valid custom element name doesn’t make the element “custom” — it needs to be defined.