mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 19:47:17 +02:00
LibWeb: User getter+setter for HTMLToken tag name and self-closing flag
This commit is contained in:
committed by
Ali Mohammad Pur
parent
1aeafcc58b
commit
15d8635afc
Notes:
sideshowbarker
2024-07-18 08:52:58 +09:00
Author: https://github.com/MaxWipfli Commit: https://github.com/SerenityOS/serenity/commit/15d8635afc7 Pull-request: https://github.com/SerenityOS/serenity/pull/8784 Reviewed-by: https://github.com/Hendiadyoin1 Reviewed-by: https://github.com/alimpfard
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user