1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 10:01:13 +09:00

LibWeb: Make Serialize functions infallible

This commit is contained in:
Sam Atkins 2023-08-22 12:05:44 +01:00 committed by Sam Atkins
parent 788c2c5a8d
commit b5893ee115
Notes: sideshowbarker 2024-07-17 06:39:26 +09:00
10 changed files with 95 additions and 105 deletions

View file

@ -41,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()) {
serialize_an_identifier(builder, m_prefix).release_value_but_fixme_should_propagate_errors();
serialize_an_identifier(builder, m_prefix);
// 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,
serialize_a_url(builder, m_namespace_uri).release_value_but_fixme_should_propagate_errors();
serialize_a_url(builder, m_namespace_uri);
// followed the character ";" (U+003B).
builder.append(";"sv);