diff --git a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp index 9d01cba55e..fc27595cd9 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp @@ -277,7 +277,7 @@ StyleComputer::RuleCache const& StyleComputer::rule_cache_for_cascade_origin(Cas { // FIXME: Filter out non-default namespace using prefixes auto namespace_uri = rule.sheet->default_namespace(); - if (namespace_uri.has_value() && namespace_uri.value() != element.namespace_uri()) { + if (namespace_uri.has_value() && namespace_uri.value() != element.namespace_()) { return false; } return true; diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp index 91c5fbc013..337c68d783 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.cpp +++ b/Userland/Libraries/LibWeb/DOM/Element.cpp @@ -175,7 +175,7 @@ WebIDL::ExceptionOr Element::set_attribute(DeprecatedFlyString const& name // 2. If this is in the HTML namespace and its node document is an HTML document, then set qualifiedName to qualifiedName in ASCII lowercase. // FIXME: Handle the second condition, assume it is an HTML document for now. - bool insert_as_lowercase = namespace_uri() == Namespace::HTML; + bool insert_as_lowercase = namespace_() == Namespace::HTML; // 3. Let attribute be the first attribute in this’s attribute list whose qualified name is qualifiedName, and null otherwise. auto* attribute = m_attributes->get_attribute(name); @@ -328,7 +328,7 @@ WebIDL::ExceptionOr Element::toggle_attribute(DeprecatedFlyString const& n // 2. If this is in the HTML namespace and its node document is an HTML document, then set qualifiedName to qualifiedName in ASCII lowercase. // FIXME: Handle the second condition, assume it is an HTML document for now. - bool insert_as_lowercase = namespace_uri() == Namespace::HTML; + bool insert_as_lowercase = namespace_() == Namespace::HTML; // 3. Let attribute be the first attribute in this’s attribute list whose qualified name is qualifiedName, and null otherwise. auto* attribute = m_attributes->get_attribute(name); diff --git a/Userland/Libraries/LibWeb/DOM/NamedNodeMap.cpp b/Userland/Libraries/LibWeb/DOM/NamedNodeMap.cpp index 5d73f36f9c..729878bc9f 100644 --- a/Userland/Libraries/LibWeb/DOM/NamedNodeMap.cpp +++ b/Userland/Libraries/LibWeb/DOM/NamedNodeMap.cpp @@ -60,7 +60,7 @@ Vector NamedNodeMap::supported_property_names() const // 2. If this NamedNodeMap object’s element is in the HTML namespace and its node document is an HTML document, then for each name in names: // FIXME: Handle the second condition, assume it is an HTML document for now. - if (associated_element().namespace_uri() == Namespace::HTML) { + if (associated_element().namespace_() == Namespace::HTML) { // 1. Let lowercaseName be name, in ASCII lowercase. // 2. If lowercaseName is not equal to name, remove name from names. names.remove_all_matching([](auto const& name) { return name != name.to_lowercase(); }); @@ -157,7 +157,7 @@ Attr const* NamedNodeMap::get_attribute(StringView qualified_name, size_t* item_ // 1. If element is in the HTML namespace and its node document is an HTML document, then set qualifiedName to qualifiedName in ASCII lowercase. // FIXME: Handle the second condition, assume it is an HTML document for now. - bool compare_as_lowercase = associated_element().namespace_uri() == Namespace::HTML; + bool compare_as_lowercase = associated_element().namespace_() == Namespace::HTML; // 2. Return the first attribute in element’s attribute list whose qualified name is qualifiedName; otherwise null. for (auto const& attribute : m_attributes) { diff --git a/Userland/Libraries/LibWeb/DOMParsing/XMLSerializer.cpp b/Userland/Libraries/LibWeb/DOMParsing/XMLSerializer.cpp index 7a2966a30c..406f49fd16 100644 --- a/Userland/Libraries/LibWeb/DOMParsing/XMLSerializer.cpp +++ b/Userland/Libraries/LibWeb/DOMParsing/XMLSerializer.cpp @@ -526,7 +526,7 @@ static WebIDL::ExceptionOr serialize_element(DOM::Element cons auto inherited_ns = namespace_; // 10. Let ns be the value of node's namespaceURI attribute. - auto const& ns = element.namespace_uri(); + auto const& ns = element.namespace_(); // 11. If inherited ns is equal to ns, then: if (inherited_ns == ns) {