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:
parent
788c2c5a8d
commit
b5893ee115
Notes:
sideshowbarker
2024-07-17 06:39:26 +09:00
Author: https://github.com/AtkinsSJ
Commit: b5893ee115
Pull-request: https://github.com/SerenityOS/serenity/pull/20709
10 changed files with 95 additions and 105 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue