From a8096d33ec9d659153f03d32442a6de9f7bb4803 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Fri, 4 Aug 2023 14:56:15 +0100 Subject: [PATCH] LibWeb: Serialize `@namespace` using spec algorithms --- Userland/Libraries/LibWeb/CSS/CSSNamespaceRule.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/CSS/CSSNamespaceRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSNamespaceRule.cpp index 17d8061dfc..30eb493ab2 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSNamespaceRule.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSNamespaceRule.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include namespace Web::CSS { @@ -40,13 +41,13 @@ DeprecatedString CSSNamespaceRule::serialized() const // followed by the serialization as an identifier of the prefix attribute (if any), if (!m_prefix.is_empty() && !m_prefix.is_null()) { - builder.append(m_prefix); + serialize_an_identifier(builder, m_prefix).release_value_but_fixme_should_propagate_errors(); // followed by a single SPACE (U+0020) if there is a prefix, builder.append(" "sv); } // followed by the serialization as URL of the namespaceURI attribute, - builder.append(m_namespace_uri); + serialize_a_url(builder, m_namespace_uri).release_value_but_fixme_should_propagate_errors(); // followed the character ";" (U+003B). builder.append(";"sv);