Skip to content

Commit

Permalink
LibWeb: Add missing base class upcalls in Node::inserted() overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Jan 23, 2025
1 parent c4f358f commit 9e59296
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Libraries/LibWeb/HTML/HTMLDetailsElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
1 change: 1 addition & 0 deletions Libraries/LibWeb/HTML/HTMLMeterElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ WebIDL::ExceptionOr<void> HTMLMeterElement::set_optimum(double value)

void HTMLMeterElement::inserted()
{
Base::inserted();
create_shadow_tree_if_needed();
}

Expand Down
1 change: 1 addition & 0 deletions Libraries/LibWeb/HTML/HTMLProgressElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ double HTMLProgressElement::position() const

void HTMLProgressElement::inserted()
{
Base::inserted();
create_shadow_tree_if_needed();
}

Expand Down

0 comments on commit 9e59296

Please sign in to comment.