mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 19:14:58 +00:00
LibWeb: User getter+setter for HTMLToken tag name and self-closing flag
This commit is contained in:
parent
1aeafcc58b
commit
15d8635afc
4 changed files with 34 additions and 22 deletions
|
@ -1570,7 +1570,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 = "img";
|
||||
token.set_tag_name("img");
|
||||
process_using_the_rules_for(m_insertion_mode, token);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue