|
|
|
|
|
by jraph
152 days ago
|
|
> there is no such thing as invalid HTML There is. There are things that are still considered invalid, like nesting form elements for instance. (this doesn't take away your argument though, and you were focusing on the parsing aspect). |
|
As far as parse errors is concerned, https://html.spec.whatwg.org/multipage/parsing.html#parse-er... says:
> This specification defines the parsing rules for HTML documents, whether they are syntactically correct or not. Certain points in the parsing algorithm are said to be parse errors. The error handling for parse errors is well-defined (that's the processing rules described throughout this specification), but user agents, while parsing an HTML document, may abort the parser at the first parse error that they encounter for which they do not wish to apply the rules described in this specification.