mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:37:35 +00:00
LibWeb: Remove two lowercase string creations from Element::has_class
This commit is contained in:
parent
7f223e2290
commit
691e4820ac
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ bool Element::has_class(const FlyString& class_name, CaseSensitivity case_sensit
|
|||
return any_of(m_classes, [&](auto& it) {
|
||||
return case_sensitivity == CaseSensitivity::CaseSensitive
|
||||
? it == class_name
|
||||
: it.to_lowercase() == class_name.to_lowercase();
|
||||
: it.equals_ignoring_case(class_name);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue