mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-05 02:33:03 +00:00
LibWeb: Avoid redundant UTF-8 validation in HTML tokenizer
This commit is contained in:
parent
df547bb321
commit
990f8e10a5
Notes:
sideshowbarker
2024-07-17 08:25:15 +09:00
Author: https://github.com/awesomekling
Commit: 990f8e10a5
Pull-request: https://github.com/SerenityOS/serenity/pull/24058
Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue