Firefox has 3 HTML parsers. One for HTML. One for (I think) XML/XHTML. One for about:blank.
The fact that about:blank, LITERALLY AN EMPTY PAGE, is full of weird edge cases, is the most 'web' thing.
4
75
1
185
I thought the legacy parser had managed to be killed a year or two ago, and about:blank just used the normal one?
1
1
No, the ghost if the old HTML parser is still there just for parsing about:blank. I view this as a failure of mine.
2
2
The code has been somewhat simplified, though, such as searchfox.org/mozilla-centra…
1
1
I have recently removed some stuff in parser/htmlparser/: bugzil.la/1400777 bugzil.la/1401097 bugzil.la/1402769
1
1
Boy, all of that SAX stuff that's still around for a single user (FeedProcessor.js)?

Nov 4, 2017 · 12:35 AM UTC

2
2
Interesting! I wonder how much of parser/xml/ could be removed; I haven't looked in there yet. (comm-central uses SAX more, alas.)
1
1