2 ms·
In fact, custom elements apparently must have a dash. From https://usefulangle.com/post/363/custom-element-valid-name https://usefulangle.com/post/363/custom-el
by CharlesW 4y ago
In fact, custom elements apparently must have a dash. From https://usefulangle.com/post/363/custom-element-valid-name https://usefulangle.com/post/363/custom-element-valid-name:
• Name has to start with a lowercase ASCII character. It cannot have an uppercase ASCII character anywhere. UTF-8 characters, emojis, etc. are allowed as long as they are not the starting character
• Name must contain a dash ("-") character. This dash character helps the browser to distinguish custom elements from regular elements.
- jwilk 4y agoIndeed. This is the relevant part of the specification: https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name https://html.spec.whatwg.org/multipage/custom-elements.html#...