1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-03 11:22:13 +00:00

LibWeb: Replace incorrect uses of String::trim_whitespace()

This commit is contained in:
Linus Groh 2022-10-01 18:25:29 +01:00 committed by Andreas Kling
parent fb21271334
commit b9220a18d1
4 changed files with 10 additions and 5 deletions

View file

@ -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)