LibWeb: Avoid redundant UTF-8 validation in HTML tokenizer

This commit is contained in:
Andreas Kling 2024-04-21 14:45:49 +02:00
parent df547bb321
commit 990f8e10a5
Notes: sideshowbarker 2024-07-17 08:25:15 +09:00

View file

@ -2892,7 +2892,7 @@ void HTMLTokenizer::restore_to(Utf8CodePointIterator const& new_iterator)
String HTMLTokenizer::consume_current_builder()
{
auto string = MUST(m_current_builder.to_string());
auto string = m_current_builder.to_string_without_validation();
m_current_builder.clear();
return string;
}