mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibHTML: Don't swallow '}' as part of CSS property values
This commit is contained in:
parent
397acde846
commit
56764a2db8
Notes:
sideshowbarker
2024-07-19 11:20:10 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/56764a2db8c
1 changed files with 4 additions and 1 deletions
|
@ -123,6 +123,9 @@ public:
|
|||
|
||||
char consume_specific(char ch)
|
||||
{
|
||||
if (peek() != ch) {
|
||||
dbg() << "peek() != '" << ch << "'";
|
||||
}
|
||||
PARSE_ASSERT(peek() == ch);
|
||||
PARSE_ASSERT(index < css.length());
|
||||
++index;
|
||||
|
@ -282,7 +285,7 @@ public:
|
|||
|
||||
bool is_valid_property_value_char(char ch) const
|
||||
{
|
||||
return ch && ch != '!' && ch != ';';
|
||||
return ch && ch != '!' && ch != ';' && ch != '}';
|
||||
}
|
||||
|
||||
Optional<StyleProperty> parse_property()
|
||||
|
|
Loading…
Add table
Reference in a new issue