1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 19:55:06 +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:
Andreas Kling 2020-06-25 16:52:38 +02:00
parent 49dd4b7e8a
commit 3fefc7f3e9

View file

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