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.
(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.