mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +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
1 changed files with 5 additions and 0 deletions
|
@ -718,6 +718,11 @@ public:
|
||||||
}
|
}
|
||||||
if (!ch)
|
if (!ch)
|
||||||
break;
|
break;
|
||||||
|
if (ch == '\\') {
|
||||||
|
consume_one();
|
||||||
|
buffer.append(consume_one());
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (ch == '}')
|
if (ch == '}')
|
||||||
break;
|
break;
|
||||||
if (ch == ';')
|
if (ch == ';')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue