diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/selectors/invalidation/defined-in-has.txt b/Tests/LibWeb/Text/expected/wpt-import/css/selectors/invalidation/defined-in-has.txt index 57cba4e5d4b..7e1bb89e7bd 100644 --- a/Tests/LibWeb/Text/expected/wpt-import/css/selectors/invalidation/defined-in-has.txt +++ b/Tests/LibWeb/Text/expected/wpt-import/css/selectors/invalidation/defined-in-has.txt @@ -6,6 +6,6 @@ Rerun Found 1 tests -1 Fail +1 Pass Details -Result Test Name MessageFail Test :has() invalidation with :defined pseudo-class \ No newline at end of file +Result Test Name MessagePass Test :has() invalidation with :defined pseudo-class \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/selectors/invalidation/defined.txt b/Tests/LibWeb/Text/expected/wpt-import/css/selectors/invalidation/defined.txt index 4ee527f8ec1..70b8a74be40 100644 --- a/Tests/LibWeb/Text/expected/wpt-import/css/selectors/invalidation/defined.txt +++ b/Tests/LibWeb/Text/expected/wpt-import/css/selectors/invalidation/defined.txt @@ -6,6 +6,6 @@ Rerun Found 1 tests -1 Fail +1 Pass Details -Result Test Name MessageFail :defined selector is effective \ No newline at end of file +Result Test Name MessagePass :defined selector is effective \ No newline at end of file diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp index f534feeacbf..fe66a6a55a8 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.cpp +++ b/Userland/Libraries/LibWeb/DOM/Element.cpp @@ -2093,7 +2093,7 @@ JS::ThrowCompletionOr Element::upgrade_element(JS::NonnullGCPtr Element::upgrade_element(JS::NonnullGCPtr Element::upgrade_element(JS::NonnullGCPtr const& is_value) { // 7.6. Set element's custom element state to "custom". - m_custom_element_state = CustomElementState::Custom; + set_custom_element_state(CustomElementState::Custom); // 7.7. Set element's custom element definition to definition. m_custom_element_definition = custom_element_definition; diff --git a/Userland/Libraries/LibWeb/DOM/Element.h b/Userland/Libraries/LibWeb/DOM/Element.h index 14720cd6f75..fb9f5332e0e 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.h +++ b/Userland/Libraries/LibWeb/DOM/Element.h @@ -369,7 +369,7 @@ public: Optional const& is_value() const { return m_is_value; } void set_is_value(Optional const& is) { m_is_value = is; } - void set_custom_element_state(CustomElementState value) { m_custom_element_state = value; } + void set_custom_element_state(CustomElementState); void setup_custom_element_from_constructor(HTML::CustomElementDefinition& custom_element_definition, Optional const& is_value); void scroll(HTML::ScrollToOptions); diff --git a/Userland/Libraries/LibWeb/DOM/Node.h b/Userland/Libraries/LibWeb/DOM/Node.h index ca4d17ed09f..5c73065c795 100644 --- a/Userland/Libraries/LibWeb/DOM/Node.h +++ b/Userland/Libraries/LibWeb/DOM/Node.h @@ -62,6 +62,7 @@ enum class IsDescendant { X(AdoptedStyleSheetsList) \ X(CSSFontLoaded) \ X(CSSImportRule) \ + X(CustomElementStateChange) \ X(DidLoseFocus) \ X(DidReceiveFocus) \ X(EditingInsertion) \