mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-12 02:30:30 +09:00
LibWeb: Replace incorrect uses of String::trim_whitespace()
This commit is contained in:
parent
fb21271334
commit
b9220a18d1
Notes:
sideshowbarker
2024-07-19 01:59:31 +09:00
Author: https://github.com/linusg
Commit: b9220a18d1
Pull-request: https://github.com/SerenityOS/serenity/pull/15423
Reviewed-by: https://github.com/AtkinsSJ ✅
4 changed files with 10 additions and 5 deletions
|
@ -13,6 +13,7 @@
|
|||
#include <LibWeb/HTML/HTMLOptionElement.h>
|
||||
#include <LibWeb/HTML/HTMLScriptElement.h>
|
||||
#include <LibWeb/HTML/HTMLSelectElement.h>
|
||||
#include <LibWeb/Infra/CharacterTypes.h>
|
||||
#include <ctype.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
@ -97,7 +98,7 @@ static String strip_and_collapse_whitespace(StringView string)
|
|||
}
|
||||
|
||||
// ...and then remove any leading and trailing ASCII whitespace from that string.
|
||||
return builder.to_string().trim_whitespace();
|
||||
return builder.to_string().trim(Infra::ASCII_WHITESPACE);
|
||||
}
|
||||
|
||||
static void concatenate_descendants_text_content(DOM::Node const* node, StringBuilder& builder)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue