Hacker News new | ask | show | jobs
by singpolyma3 45 days ago
That's what browsers at the time did. But the format could be used with a lenient parser if anyone wanted that
2 comments

The HTML spec actually includes how to parse broken HTML. https://html.spec.whatwg.org/multipage/parsing.html#parse-er...
> But the format could be used with a lenient parser if anyone wanted that

Congratulation on reinventing HTML.

HTML but allowing XML compatible syntax to be valid.

XHTML5 sort of gets us there, but parsing in standard HTML5 mode still won't do the right thing with eg <b />