1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:57:35 +00:00

LibWeb: Replace incorrect uses of split_view() for whitespace splitting

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

View file

@ -76,7 +76,7 @@ void DOMTokenList::associated_attribute_changed(StringView value)
if (value.is_empty())
return;
auto split_values = value.split_view(' ');
auto split_values = value.split_view(Infra::ASCII_WHITESPACE);
for (auto const& split_value : split_values)
append_to_ordered_set(m_token_set, split_value);
}