mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibWeb: Tweak CSS parser to swallow backslash-escaped characters
This isn't the correct way of doing this, but at least it allows the parsing to progress a bit further in some cases.
This commit is contained in:
parent
49dd4b7e8a
commit
3fefc7f3e9
Notes:
sideshowbarker
2024-07-19 05:23:13 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/3fefc7f3e93
1 changed files with 5 additions and 0 deletions
|
@ -718,6 +718,11 @@ public:
|
|||
}
|
||||
if (!ch)
|
||||
break;
|
||||
if (ch == '\\') {
|
||||
consume_one();
|
||||
buffer.append(consume_one());
|
||||
continue;
|
||||
}
|
||||
if (ch == '}')
|
||||
break;
|
||||
if (ch == ';')
|
||||
|
|
Loading…
Add table
Reference in a new issue