summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Parser
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-05 21:59:46 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-05 21:59:46 +0200
commit333736500045382dcc8f30ba78996de89c892ab0 (patch)
treeb29f2e96a9a07f72630337a71b8ed8199647f092 /Libraries/LibWeb/Parser
parent11f2c59219c8287243ba060371f6f0b09a1a5beb (diff)
downloadserenity-333736500045382dcc8f30ba78996de89c892ab0.zip
LibWeb: Parse param/source/track start tags during "in body" insertion
Diffstat (limited to 'Libraries/LibWeb/Parser')
-rw-r--r--Libraries/LibWeb/Parser/HTMLDocumentParser.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp b/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp
index 26da7c289b..31747bf609 100644
--- a/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp
+++ b/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp
@@ -1258,7 +1258,10 @@ void HTMLDocumentParser::handle_in_body(HTMLToken& token)
}
if (token.is_start_tag() && token.tag_name().is_one_of("param", "source", "track")) {
- TODO();
+ insert_html_element(token);
+ m_stack_of_open_elements.pop();
+ token.acknowledge_self_closing_flag_if_set();
+ return;
}
if (token.is_start_tag() && token.tag_name() == "hr") {