mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +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:
committed by
Andreas Kling
parent
1277290a4a
commit
d8cdf3f5e1
@@ -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) << ";";
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user