4 ms·
Good lord, do you really want to die on that hill? I miss the day of well defined schemas. Parsing HTML is a minefield these days.
by exabrial 6y ago
Good lord, do you really want to die on that hill? I miss the day of well defined schemas. Parsing HTML is a minefield these days.
- chrismorgan 6y agoParsing HTML is anything but a minefield. It’s far and away the best format in this regard that I’ve ever encountered, because its parser is defined exhaustively, and all the tools people use obey.¹ Few other things boast that, and even fewer are consistently implemented correctly (which is to say: I don’t know of any examples, though I haven’t hunted). (I’m speaking specifically of parsing HTML. Other tasks that you may perform on documents are a good deal less robust.) — ¹ OK, so developers often still use bad HTML parsers in their own apps. But browsers and all good HTML tooling gets it right.