mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
LibWeb: Ignore backslashes (\) in attribute selectors
This makes us at least parse selectors like [foo=bar\ baz] correctly. The current solution here is quite hackish but the real fix will come when we implement a spec-compliant CSS parser.
This commit is contained in:
parent
65c4e5cacf
commit
03da686aa2
Notes:
sideshowbarker
2024-07-19 05:43:43 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/03da686aa2e
1 changed files with 3 additions and 0 deletions
|
@ -492,6 +492,9 @@ public:
|
|||
}
|
||||
continue;
|
||||
}
|
||||
// FIXME: This is a hack that will go away when we replace this with a big boy CSS parser.
|
||||
if (ch == '\\')
|
||||
ch = consume_one();
|
||||
buffer.append(ch);
|
||||
}
|
||||
if (in_value)
|
||||
|
|
Loading…
Add table
Reference in a new issue