2 ms·
I think I got to point 2, found no reference in the form tag section, and gave up. But what's fascinating is that it describes the html parser effectively impl
by samwillis 4y ago
I think I got to point 2, found no reference in the form tag section, and gave up.
But what's fascinating is that it describes the html parser effectively implementing "overlapping markup", as in the Wikipedia article, for this edge case for backwards compatibility.
- chrismorgan 4y agoThere’s a lot of messy stuff the HTML syntax supports for historical reasons. https://html.spec.whatwg.org/multipage/parsing.html#an-introduction-to-error-handling-and-strange-cases-in-the-parser https://html.spec.whatwg.org/multipage/parsing.html#an-intro... covers a variety of fun ones, like how inline formatting elements basically support overlapping markup, and how malformed nesting can be achieved in a few different ways. It’s a useful section of the spec for understanding these things because it explains what’s going on, with links to the precise parser details.