diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-10-28 09:03:06 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-28 15:09:06 +0200 |
commit | 691e4820ac0e2415feee75ee510f4daedf1197ea (patch) | |
tree | c89078c49c7f64793dce15a8fba41bb5ab1461c4 /Userland/Libraries/LibWeb/DOM | |
parent | 7f223e2290acad2f26ad0eda78c4fc0f3e36e2ca (diff) | |
download | serenity-691e4820ac0e2415feee75ee510f4daedf1197ea.zip |
LibWeb: Remove two lowercase string creations from Element::has_class
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Element.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp index db803a825c..5b24af6c37 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.cpp +++ b/Userland/Libraries/LibWeb/DOM/Element.cpp @@ -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); }); } |