3 ms·
> What kind of HTML parser? A SGML one or a HTML5 one? I intended the latter. In fact I'm a bit surprised that I have ever been asked for this, I thought "HTML
by lifthrasiir 6y ago
> What kind of HTML parser? A SGML one or a HTML5 one?
I intended the latter. In fact I'm a bit surprised that I have ever been asked for this, I thought "HTML" nowadays exclusively refers to HTML5...
- bhaak 6y agoI would have expected the former. Given that one of the rationales of HTML5 was "simpler parsing". I'm obviously not uptodate with the HTML5 parsing. But why should I? Who writes HTML by hand these days? The SGML heritage of HTML 4.01 and earlier lead to some gruesome legal constructs that look surprisingly similar to your examples. Looks like every generation has to make their own mistakes.