mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-01 08:48:49 +00:00
LibWeb: Port all callers of Element::namespace to Element::namespace_uri
Removing some more use of DeprecatedFlyString
This commit is contained in:
parent
f2e77f7778
commit
326b34c7c7
Notes:
sideshowbarker
2024-07-17 07:19:27 +09:00
Author: https://github.com/shannonbooth
Commit: 326b34c7c7
Pull-request: https://github.com/SerenityOS/serenity/pull/21815
Reviewed-by: https://github.com/awesomekling
4 changed files with 5 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue