mirror of
https://github.com/RGBCube/serenity
synced 2025-07-13 07:17:35 +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
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…
Add table
Add a link
Reference in a new issue