4 ms·
No, only ASCII alphanumerics are allowed in HTML 5 tag names.
by jwilk 4y ago
No, only ASCII alphanumerics are allowed in HTML 5 tag names.
- CharlesW 4y agoIn 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#...