diff options
Diffstat (limited to 'Libraries/LibWeb/CSS')
-rw-r--r-- | Libraries/LibWeb/CSS/SelectorEngine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibWeb/CSS/SelectorEngine.cpp b/Libraries/LibWeb/CSS/SelectorEngine.cpp index 654fe6ac95..b080c37edc 100644 --- a/Libraries/LibWeb/CSS/SelectorEngine.cpp +++ b/Libraries/LibWeb/CSS/SelectorEngine.cpp @@ -110,7 +110,7 @@ bool matches(const Selector::SimpleSelector& component, const Element& element) case Selector::SimpleSelector::Type::Class: return element.has_class(component.value); case Selector::SimpleSelector::Type::TagName: - return component.value == element.tag_name(); + return component.value == element.local_name(); default: ASSERT_NOT_REACHED(); } |