ladybird/Libraries/LibWeb/HTML/Parser
Andreas Kling 550613e526 LibWeb: Remember when HTML parser should ignore next line feed character
There's a quirk in HTML where the parser should ignore any line feed
character immediately following a `pre` or `textarea` start tag.

This was working fine when we could peek ahead in the input stream and
see the next token, but didn't work in character-at-a-time parsing with
document.write().

This commit adds the "can ignore next line feed character" as a parser
flag that is maintained across invocations, making it work in this
parsing mode as well.

20 new passes in WPT/html/syntax/parsing/ :^)
2025-02-20 14:32:13 +01:00
..
Entities.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Entities.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
HTMLEncodingDetection.cpp LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
HTMLEncodingDetection.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
HTMLParser.cpp LibWeb: Remember when HTML parser should ignore next line feed character 2025-02-20 14:32:13 +01:00
HTMLParser.h LibWeb: Remember when HTML parser should ignore next line feed character 2025-02-20 14:32:13 +01:00
HTMLToken.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
HTMLToken.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
HTMLToken.swift LibWeb: Add remaining states to the Swift tokenizer 2024-11-15 10:51:45 -07:00
HTMLTokenizer.cpp LibWeb: Emit comment token for unterminated bogus comments on EOF 2025-01-11 11:09:47 +01:00
HTMLTokenizer.h LibWeb: Teach more of HTMLTokenizer to stop at the insertion point 2024-11-24 11:45:23 +01:00
HTMLTokenizer.swift LibWeb: Add remaining states to the Swift tokenizer 2024-11-15 10:51:45 -07:00
HTMLTokenizerHelpers.cpp LibWeb: Add remaining states to the Swift tokenizer 2024-11-15 10:51:45 -07:00
HTMLTokenizerHelpers.h LibWeb: Add remaining states to the Swift tokenizer 2024-11-15 10:51:45 -07:00
ListOfActiveFormattingElements.cpp LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
ListOfActiveFormattingElements.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
StackOfOpenElements.cpp LibWeb: Fix various typos 2025-01-30 15:00:16 +00:00
StackOfOpenElements.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00