3 ms·
OP moves the goalposts, not the comments: "Here’s my HTML lexer. It doesn’t try to do a validating parse; it just identifies the lexical elements. You might th
by valbaca 3y ago
OP moves the goalposts, not the comments:
"Here’s my HTML lexer. It doesn’t try to do a validating parse; it just identifies the lexical elements. You might think of it more as an HTML chunker than an HTML parser. It isn’t very forgiving of broken HTML, although it makes some very small allowances in that direction."