Don't fire slotchange events when there's already a pending event for the same slot (#35222)

* Don't fire slotchange events if there is already a pending event for the same slot

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Update WPT expectations

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2025-01-30 14:57:04 +01:00 committed by GitHub
parent 5e9de2cb61
commit 64b40ea700
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 33 additions and 49 deletions

View file

@ -1,40 +1,4 @@
[slotchange-event.html]
[slotchange event must fire on a default slot element inside an open shadow root in a document]
expected: FAIL
[slotchange event must fire on a default slot element inside a closed shadow root in a document]
expected: FAIL
[slotchange event must fire on a default slot element inside an open shadow root not in a document]
expected: FAIL
[slotchange event must fire on a default slot element inside a closed shadow root not in a document]
expected: FAIL
[slotchange event must fire on a named slot element insidean open shadow root in a document]
expected: FAIL
[slotchange event must fire on a named slot element insidea closed shadow root in a document]
expected: FAIL
[slotchange event must fire on a named slot element insidean open shadow root not in a document]
expected: FAIL
[slotchange event must fire on a named slot element insidea closed shadow root not in a document]
expected: FAIL
[slotchange event must fire on a slot element inside an open shadow root in a document even if the slot was removed immediately after the assigned nodes were mutated]
expected: FAIL
[slotchange event must fire on a slot element inside a closed shadow root in a document even if the slot was removed immediately after the assigned nodes were mutated]
expected: FAIL
[slotchange event must fire on a slot element inside an open shadow root not in a document even if the slot was removed immediately after the assigned nodes were mutated]
expected: FAIL
[slotchange event must fire on a slot element inside a closed shadow root not in a document even if the slot was removed immediately after the assigned nodes were mutated]
expected: FAIL
[slotchange event must fire on a slot element inside an open shadow root in a document when innerHTML modifies the children of the shadow host]
expected: FAIL