mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 14:05:09 +00:00
LibWeb: Run object representation steps on element creation
Prior to this change, fallback content inside an object tag would not be rendered on page load.
This commit is contained in:
parent
166f7e0b96
commit
83cb35b60f
1 changed files with 8 additions and 0 deletions
|
@ -20,6 +20,14 @@ HTMLObjectElement::HTMLObjectElement(DOM::Document& document, DOM::QualifiedName
|
||||||
: BrowsingContextContainer(document, move(qualified_name))
|
: BrowsingContextContainer(document, move(qualified_name))
|
||||||
{
|
{
|
||||||
set_prototype(&Bindings::cached_web_prototype(realm(), "HTMLObjectElement"));
|
set_prototype(&Bindings::cached_web_prototype(realm(), "HTMLObjectElement"));
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-object-element
|
||||||
|
// Whenever one of the following conditions occur:
|
||||||
|
// - the element is created,
|
||||||
|
// ...the user agent must queue an element task on the DOM manipulation task source given
|
||||||
|
// the object element to run the following steps to (re)determine what the object element represents.
|
||||||
|
// This task being queued or actively running must delay the load event of the element's node document.
|
||||||
|
queue_element_task_to_run_object_representation_steps();
|
||||||
}
|
}
|
||||||
|
|
||||||
HTMLObjectElement::~HTMLObjectElement() = default;
|
HTMLObjectElement::~HTMLObjectElement() = default;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue