diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp index 164ef4c4dd..a8f2a4b4c4 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.cpp +++ b/Userland/Libraries/LibWeb/DOM/Element.cpp @@ -310,7 +310,7 @@ bool Element::has_attribute(StringView name) const } // https://dom.spec.whatwg.org/#dom-element-hasattributens -bool Element::has_attribute_ns(DeprecatedFlyString namespace_, DeprecatedFlyString const& name) const +bool Element::has_attribute_ns(StringView namespace_, StringView name) const { // 1. If namespace is the empty string, then set it to null. if (namespace_.is_empty()) diff --git a/Userland/Libraries/LibWeb/DOM/Element.h b/Userland/Libraries/LibWeb/DOM/Element.h index 3abe140779..d703c6b405 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.h +++ b/Userland/Libraries/LibWeb/DOM/Element.h @@ -93,7 +93,7 @@ public: // FIXME: This should be taking a 'FlyString const&' bool has_attribute(StringView name) const; - bool has_attribute_ns(DeprecatedFlyString namespace_, DeprecatedFlyString const& name) const; + bool has_attribute_ns(StringView namespace_, StringView name) const; bool has_attributes() const; // FIXME: This should be taking a 'FlyString const&'