|
@@ -1721,7 +1721,7 @@ void HTMLParser::handle_in_body(HTMLToken& token)
|
|
// If it is not, add the attribute and its corresponding value to that element.
|
|
// If it is not, add the attribute and its corresponding value to that element.
|
|
token.for_each_attribute([&](auto& attribute) {
|
|
token.for_each_attribute([&](auto& attribute) {
|
|
if (!current_node().has_attribute(attribute.local_name))
|
|
if (!current_node().has_attribute(attribute.local_name))
|
|
- MUST(current_node().set_attribute(attribute.local_name, attribute.value));
|
|
|
|
|
|
+ current_node().append_attribute(attribute.local_name, attribute.value);
|
|
return IterationDecision::Continue;
|
|
return IterationDecision::Continue;
|
|
});
|
|
});
|
|
return;
|
|
return;
|
|
@@ -1743,7 +1743,6 @@ void HTMLParser::handle_in_body(HTMLToken& token)
|
|
|
|
|
|
// -> A start tag whose tag name is "body"
|
|
// -> A start tag whose tag name is "body"
|
|
if (token.is_start_tag() && token.tag_name() == HTML::TagNames::body) {
|
|
if (token.is_start_tag() && token.tag_name() == HTML::TagNames::body) {
|
|
-
|
|
|
|
// Parse error.
|
|
// Parse error.
|
|
log_parse_error();
|
|
log_parse_error();
|
|
|
|
|
|
@@ -1763,7 +1762,7 @@ void HTMLParser::handle_in_body(HTMLToken& token)
|
|
auto& body_element = m_stack_of_open_elements.elements().at(1);
|
|
auto& body_element = m_stack_of_open_elements.elements().at(1);
|
|
token.for_each_attribute([&](auto& attribute) {
|
|
token.for_each_attribute([&](auto& attribute) {
|
|
if (!body_element->has_attribute(attribute.local_name))
|
|
if (!body_element->has_attribute(attribute.local_name))
|
|
- MUST(body_element->set_attribute(attribute.local_name, attribute.value));
|
|
|
|
|
|
+ body_element->append_attribute(attribute.local_name, attribute.value);
|
|
return IterationDecision::Continue;
|
|
return IterationDecision::Continue;
|
|
});
|
|
});
|
|
return;
|
|
return;
|