1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-21 15:45:07 +00:00
serenity/Userland/Libraries/LibWeb/CSS/Parser
Sam Atkins c249fbd17c LibWeb: Correct escape handling in CSS Tokenizer
Calling is_valid_escape_sequence() with no arguments hides what it
is operating on, so I have removed that, so that you must explicitly
tell it what you are testing.

The call from consume_a_token() was using the wrong tokens, so it
returned false incorrectly. This was resulting in corrupted output
when faced with this code from Acid2. (Abbreviated)

```css
.parser { error: \}; }
.parser { }
```
2021-07-11 23:19:56 +02:00
..
DeclarationOrAtRule.h LibWeb: Add accessors to CSS::DeclarationOrAtRule 2021-07-11 23:19:56 +02:00
DeprecatedCSSParser.cpp LibWeb: Add context to new CSS parser, and deprecate the old one 2021-07-11 23:19:56 +02:00
DeprecatedCSSParser.h LibWeb: Add context to new CSS parser, and deprecate the old one 2021-07-11 23:19:56 +02:00
Parser.cpp LibWeb: Add more logging to CSS parser 2021-07-11 23:19:56 +02:00
Parser.h LibWeb: Implement CSS::Parse::parse_nth_child_pattern() 2021-07-11 23:19:56 +02:00
StyleBlockRule.h LibWeb: Give CSS Token and StyleComponentValueRule matching is() funcs 2021-07-11 23:19:56 +02:00
StyleComponentValueRule.h LibWeb: Increase clarity with CSS token debug logging 2021-07-11 23:19:56 +02:00
StyleDeclarationRule.h Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
StyleFunctionRule.h LibWeb: Convert StyleFunctionRule.m_values to ComponentValues 2021-07-11 23:19:56 +02:00
StyleRule.h LibWeb: Merge CSS Parser's QualifiedStyleRule and AtStyleRule 2021-07-11 23:19:56 +02:00
StyleRules.cpp LibWeb: Convert StyleFunctionRule.m_values to ComponentValues 2021-07-11 23:19:56 +02:00
Token.cpp LibWeb: Increase clarity with CSS token debug logging 2021-07-11 23:19:56 +02:00
Token.h LibWeb: Increase clarity with CSS token debug logging 2021-07-11 23:19:56 +02:00
Tokenizer.cpp LibWeb: Correct escape handling in CSS Tokenizer 2021-07-11 23:19:56 +02:00
Tokenizer.h LibWeb: Correct escape handling in CSS Tokenizer 2021-07-11 23:19:56 +02:00