4 ms·
The entire second half of the article acts as if custom elements aren't already supported in HTML: https://html.spec.whatwg.org/multipage/custom-elements.html
by wackget 3y ago
The entire second half of the article acts as if custom elements aren't already supported in HTML:
https://html.spec.whatwg.org/multipage/custom-elements.html https://html.spec.whatwg.org/multipage/custom-elements.html
You can go ahead and create <whatever> <custom-elements> with whatever attributes you want and it'll work.
- alexpetros 3y agoCustom elements are supported, but custom attributes on existing elements are not—an asymmetry that the WHATWG proposal I linked to makes note of.
- yoz 3y agoThis is a helpful and concise explanation. As I read the article, I continually wondered when custom elements would appear, and was surprised that they didn't. Adding this context around the link you mention would help. (I didn't click on the link because I was focused on absorbing your article in one go; now that I've looked at the link, I think that your sentence is much more concise for the reader.)