mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-08 17:47:18 +00:00
LibWeb: Remove StringBuilder from HTMLToken::m_tag
This commit is contained in:
committed by
Andreas Kling
parent
901d71148b
commit
3aa202c432
@@ -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