mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibWeb: Replace incorrect uses of String::trim_whitespace()
This commit is contained in:
committed by
Andreas Kling
parent
fb21271334
commit
b9220a18d1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user