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:
Andreas Kling 2020-06-25 16:52:38 +02:00
parent 49dd4b7e8a
commit 3fefc7f3e9
Notes: sideshowbarker 2024-07-19 05:23:13 +09:00

View file

@ -718,6 +718,11 @@ public:
}
if (!ch)
break;
if (ch == '\\') {
consume_one();
buffer.append(consume_one());
continue;
}
if (ch == '}')
break;
if (ch == ';')