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

LibWeb/Infra: Port strip_and_collapse_whitespace() to new String

This commit is contained in:
Linus Groh 2023-03-04 21:42:38 +00:00
parent f65cbeef5c
commit 93ed1b59c8
Notes: sideshowbarker 2024-07-17 06:46:15 +09:00
3 changed files with 8 additions and 8 deletions

View file

@ -108,7 +108,7 @@ DeprecatedString HTMLOptionElement::text() const
});
// Return the result of stripping and collapsing ASCII whitespace from the above concatenation.
return Infra::strip_and_collapse_whitespace(builder.string_view());
return Infra::strip_and_collapse_whitespace(builder.string_view()).release_value_but_fixme_should_propagate_errors().to_deprecated_string();
}
// https://html.spec.whatwg.org/multipage/form-elements.html#dom-option-text