diff options
author | Andreas Kling <kling@serenityos.org> | 2020-06-25 16:52:38 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-25 16:52:38 +0200 |
commit | 3fefc7f3e9324c5f2b9867dc6f509e156767ad29 (patch) | |
tree | dbceea3cebf29de5af35ffe3c1975f60f9df9649 /Libraries | |
parent | 49dd4b7e8ab1f3c3f07104d056294b46097398f6 (diff) | |
download | serenity-3fefc7f3e9324c5f2b9867dc6f509e156767ad29.zip |
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.
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibWeb/Parser/CSSParser.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Libraries/LibWeb/Parser/CSSParser.cpp b/Libraries/LibWeb/Parser/CSSParser.cpp index 74310f1b27..3212701032 100644 --- a/Libraries/LibWeb/Parser/CSSParser.cpp +++ b/Libraries/LibWeb/Parser/CSSParser.cpp @@ -718,6 +718,11 @@ public: } if (!ch) break; + if (ch == '\\') { + consume_one(); + buffer.append(consume_one()); + continue; + } if (ch == '}') break; if (ch == ';') |