mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibWeb: Make CSS property parsing case-insensitive
These are all valid: background-COLOR: red; Background-Color: red; BACKGROUND-COLOR: red; BaCkGrOuNd-CoLoR: red;
This commit is contained in:
parent
1277290a4a
commit
d8cdf3f5e1
Notes:
sideshowbarker
2024-07-19 06:40:25 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/d8cdf3f5e1e Pull-request: https://github.com/SerenityOS/serenity/pull/2214 Reviewed-by: https://github.com/awesomekling
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ int main(int argc, char** argv)
|
|||
|
||||
json.as_object().for_each_member([&](auto& name, auto& value) {
|
||||
ASSERT(value.is_object());
|
||||
out() << " if (string == \"" << name << "\")";
|
||||
out() << " if (string.equals_ignoring_case(\"" << name << "\"))";
|
||||
out() << " return PropertyID::" << title_casify(name) << ";";
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue