4 ms·
I think the HTML standard prohibits you from using non-standard tags like <clock> or <star>, unless they have a dash in them.
by SimeVidas 11y ago
I think the HTML standard prohibits you from using non-standard tags like <clock> or <star>, unless they have a dash in them.
- sindreaa 11y agoAs you can see from inspecting the examples, any non-standard tag will use standard tags in the dom, with a class denoting their imba type.
- Kiro 11y agoThis can't be true. I use non-standard tags without dashes all the time for my custom directives in Angular.
- SimeVidas 11y agoI understand that it works in browsers. My point is about the HTML Standard disallowing it.
- acoard 11y agoNon-standard tags generally work in all browsers modern, but they aren't part of the spec. It's just like custom attributes which don't start with `data-`. They're recognized and work, but not strictly speaking legal. Your code fill fail HTML5 validation tests.