mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-06 11:12:54 +00:00
LibWeb: Handle "nobr" start tag during "in body"
This commit is contained in:
parent
22521e57fd
commit
c70bd0ba58
Notes:
sideshowbarker
2024-07-19 05:51:02 +09:00
Author: https://github.com/kylemclean
Commit: c70bd0ba58
Pull-request: https://github.com/SerenityOS/serenity/pull/2491
1 changed files with 9 additions and 1 deletions
|
@ -1161,7 +1161,15 @@ void HTMLDocumentParser::handle_in_body(HTMLToken& token)
|
|||
}
|
||||
|
||||
if (token.is_start_tag() && token.tag_name() == "nobr") {
|
||||
TODO();
|
||||
reconstruct_the_active_formatting_elements();
|
||||
if (m_stack_of_open_elements.has_in_scope("nobr")) {
|
||||
PARSE_ERROR();
|
||||
run_the_adoption_agency_algorithm(token);
|
||||
reconstruct_the_active_formatting_elements();
|
||||
}
|
||||
auto element = insert_html_element(token);
|
||||
m_list_of_active_formatting_elements.add(*element);
|
||||
return;
|
||||
}
|
||||
|
||||
if (token.is_end_tag() && token.tag_name().is_one_of("a", "b", "big", "code", "em", "font", "i", "nobr", "s", "small", "strike", "strong", "tt", "u")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue