mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 01:09:25 +00:00
LibWeb/HTML: Add missing spec text/link for insert_html_element()
This commit is contained in:
committed by
Tim Ledbetter
parent
c4889f3c5c
commit
334c55c999
@@ -848,8 +848,11 @@ GC::Ref<DOM::Element> HTMLParser::insert_foreign_element(HTMLToken const& token,
|
||||
return element;
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/parsing.html#insert-an-html-element
|
||||
GC::Ref<DOM::Element> HTMLParser::insert_html_element(HTMLToken const& token)
|
||||
{
|
||||
// When the steps below require the user agent to insert an HTML element for a token, the user agent must insert a
|
||||
// foreign element for the token, with the HTML namespace and false.
|
||||
return insert_foreign_element(token, Namespace::HTML, OnlyAddToElementStack::No);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user