mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-08 12:12:53 +00:00
LibWeb: Parse "input" tags during the "in body" insertion mode
This commit is contained in:
parent
7aa7a2078f
commit
772b51038e
Notes:
sideshowbarker
2024-07-19 06:02:38 +09:00
Author: https://github.com/awesomekling
Commit: 772b51038e
4 changed files with 26 additions and 0 deletions
|
@ -751,6 +751,18 @@ void HTMLDocumentParser::handle_in_body(HTMLToken& token)
|
|||
return;
|
||||
}
|
||||
|
||||
if (token.is_start_tag() && token.tag_name() == "input") {
|
||||
reconstruct_the_active_formatting_elements();
|
||||
insert_html_element(token);
|
||||
m_stack_of_open_elements.pop();
|
||||
token.acknowledge_self_closing_flag_if_set();
|
||||
auto type_attribute = token.attribute(HTML::AttributeNames::type);
|
||||
if (type_attribute.is_null() || type_attribute != "hidden") {
|
||||
m_frameset_ok = false;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (token.is_start_tag()) {
|
||||
reconstruct_the_active_formatting_elements();
|
||||
insert_html_element(token);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue