mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +00:00
LibWeb/HTML: Add missing spec text/link for insert_html_element()
This commit is contained in:
parent
c4889f3c5c
commit
334c55c999
Notes:
github-actions[bot]
2025-02-20 21:56:38 +00:00
Author: https://github.com/AtkinsSJ
Commit: 334c55c999
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3560
Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 3 additions and 0 deletions
|
@ -848,8 +848,11 @@ GC::Ref<DOM::Element> HTMLParser::insert_foreign_element(HTMLToken const& token,
|
||||||
return element;
|
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)
|
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);
|
return insert_foreign_element(token, Namespace::HTML, OnlyAddToElementStack::No);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue