mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 14:05:15 +00:00
Before this change, the explicit EOF inserted by document.close() would instantly abort the parser. This meant that parsing algorithms that ran as part of the parser unwinding on EOF would never actually run. 591 new passes in WPT/html/syntax/parsing/ :^) This exposed a problem where the parser would try to insert a root <html> element on EOF in a document where someone already inserted such an element via direct DOM manipulation. The parser now gracefully handles this scenario. It's covered by existing tests (which would crash without this change.) |
||
---|---|---|
.. | ||
Entities.cpp | ||
Entities.h | ||
HTMLEncodingDetection.cpp | ||
HTMLEncodingDetection.h | ||
HTMLParser.cpp | ||
HTMLParser.h | ||
HTMLToken.cpp | ||
HTMLToken.h | ||
HTMLToken.swift | ||
HTMLTokenizer.cpp | ||
HTMLTokenizer.h | ||
HTMLTokenizer.swift | ||
HTMLTokenizerHelpers.cpp | ||
HTMLTokenizerHelpers.h | ||
ListOfActiveFormattingElements.cpp | ||
ListOfActiveFormattingElements.h | ||
StackOfOpenElements.cpp | ||
StackOfOpenElements.h |