mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
LibWeb: Remove StringBuilder from HTMLToken::m_tag
This commit is contained in:
committed by
Andreas Kling
parent
901d71148b
commit
3aa202c432
Notes:
sideshowbarker
2024-07-18 09:01:40 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/3aa202c432d Pull-request: https://github.com/SerenityOS/serenity/pull/8687 Reviewed-by: https://github.com/alimpfard
@@ -1572,8 +1572,7 @@ void HTMLDocumentParser::handle_in_body(HTMLToken& token)
|
||||
if (token.is_start_tag() && token.tag_name() == HTML::TagNames::image) {
|
||||
// Parse error. Change the token's tag name to HTML::TagNames::img and reprocess it. (Don't ask.)
|
||||
log_parse_error();
|
||||
token.m_tag.tag_name.clear();
|
||||
token.m_tag.tag_name.append(HTML::TagNames::img);
|
||||
token.m_tag.tag_name = "img";
|
||||
process_using_the_rules_for(m_insertion_mode, token);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user