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:
parent
f65cbeef5c
commit
93ed1b59c8
Notes:
sideshowbarker
2024-07-17 06:46:15 +09:00
Author: https://github.com/linusg
Commit: 93ed1b59c8
Pull-request: https://github.com/SerenityOS/serenity/pull/17718
3 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue