Re:Stop ‘Using’ “Useless” ‘“‘Quotes’”’
by exabrial on Tuesday July 21, 2020 @01:09PM
(#23908658)
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.
[ Parent
| on HN ]
Re:Stop ‘Using’ “Useless” ‘“‘Quotes’”’
by chrismorgan on Tuesday July 21, 2020 @01:47PM
(#23909029)
Parsing 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.