1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 00:45:08 +00:00

LibWeb: Remove StringBuilder from HTMLToken::m_tag

This commit is contained in:
Gunnar Beutner 2021-05-23 09:16:07 +02:00 committed by Andreas Kling
parent 901d71148b
commit 3aa202c432
4 changed files with 33 additions and 21 deletions

View file

@ -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;
}