diff --git a/Userland/Libraries/LibWeb/DOM/NamedNodeMap.cpp b/Userland/Libraries/LibWeb/DOM/NamedNodeMap.cpp index 9c5ea50f610..10f19c0b139 100644 --- a/Userland/Libraries/LibWeb/DOM/NamedNodeMap.cpp +++ b/Userland/Libraries/LibWeb/DOM/NamedNodeMap.cpp @@ -233,11 +233,7 @@ WebIDL::ExceptionOr> NamedNodeMap::set_attribute(Attr& attribute // 2. Let oldAttr be the result of getting an attribute given attr’s namespace, attr’s local name, and element. size_t old_attribute_index = 0; - ByteString deprecated_namespace_uri; - if (attribute.namespace_uri().has_value()) - deprecated_namespace_uri = attribute.namespace_uri().value().to_deprecated_fly_string(); - - auto* old_attribute = get_attribute_ns(deprecated_namespace_uri, attribute.local_name(), &old_attribute_index); + auto* old_attribute = get_attribute_ns(attribute.namespace_uri(), attribute.local_name(), &old_attribute_index); // 3. If oldAttr is attr, return attr. if (old_attribute == &attribute) diff --git a/Userland/Libraries/LibWeb/DOM/NamedNodeMap.h b/Userland/Libraries/LibWeb/DOM/NamedNodeMap.h index 747231f5ddf..375ada0bac8 100644 --- a/Userland/Libraries/LibWeb/DOM/NamedNodeMap.h +++ b/Userland/Libraries/LibWeb/DOM/NamedNodeMap.h @@ -9,7 +9,6 @@ #pragma once -#include #include #include #include