LibWeb: Port all callers of Element::namespace to Element::namespace_uri

Removing some more use of DeprecatedFlyString
This commit is contained in:
Shannon Booth 2023-11-05 13:12:53 +13:00 committed by Andreas Kling
parent f2e77f7778
commit 326b34c7c7
Notes: sideshowbarker 2024-07-17 07:19:27 +09:00
4 changed files with 5 additions and 7 deletions

View file

@ -3915,7 +3915,7 @@ DeprecatedString HTMLParser::serialize_html_fragment(DOM::Node const& node)
// Otherwise, let tagname be current node's qualified name.
FlyString tag_name;
if (element.namespace_().is_one_of(Namespace::HTML, Namespace::MathML, Namespace::SVG))
if (element.namespace_uri().has_value() && element.namespace_uri()->is_one_of(Namespace::HTML, Namespace::MathML, Namespace::SVG))
tag_name = element.local_name();
else
tag_name = element.qualified_name();