LibWeb: Add missing base class upcalls in Node::inserted() overrides

This commit is contained in:
Andreas Kling 2025-01-23 17:38:24 +01:00 committed by Andreas Kling
parent 7269fc3e52
commit 003c045589
Notes: github-actions[bot] 2025-01-23 20:40:14 +00:00
3 changed files with 4 additions and 0 deletions

View file

@ -45,6 +45,8 @@ void HTMLDetailsElement::initialize(JS::Realm& realm)
// https://html.spec.whatwg.org/multipage/interactive-elements.html#the-details-element:html-element-insertion-steps
void HTMLDetailsElement::inserted()
{
Base::inserted();
// 1. Ensure details exclusivity by closing the given element if needed given insertedNode.
ensure_details_exclusivity_by_closing_the_given_element_if_needed();

View file

@ -170,6 +170,7 @@ WebIDL::ExceptionOr<void> HTMLMeterElement::set_optimum(double value)
void HTMLMeterElement::inserted()
{
Base::inserted();
create_shadow_tree_if_needed();
}

View file

@ -92,6 +92,7 @@ double HTMLProgressElement::position() const
void HTMLProgressElement::inserted()
{
Base::inserted();
create_shadow_tree_if_needed();
}