3 ms·
Or they could have just used arbitrary elements, like <myelement>. Folks forget that this is valid HTML, and it’s just treated as a div.
by IggleSniggle 6y ago
Or they could have just used arbitrary elements, like <myelement>. Folks forget that this is valid HTML, and it’s just treated as a div.
- recursive 6y agoI don't think they forgot, because it was never true. It needs a dash `-` in it. https://html.spec.whatwg.org/#valid-custom-element-name https://html.spec.whatwg.org/#valid-custom-element-name
- folmar 6y agoIt needs them now, but it wasn't always the case. In html5-20121025 User agents must treat elements and attributes that they do not understand as semantically neutral. It was also in the grey area in HTML4.01 spec, note B.1 provides for user agents rendering any unknown elements.