Bug
1881960 [wpt PR 44774] - DOM: Add WPTs for removing steps, a=testonly
Automatic update from web-platform-tests
DOM: Add WPTs for removing steps
This CL adds WPTs for removing steps, to ensure that script is never
executed during the removing steps hook [1], which are invoked
synchronously during per-node removal (that is, they are not batched,
but run this way per-node).
This CL:
1. Augments the existing iframe removing steps WPT, to include
`pagehide` events. At the time of writing this, all browsers deviate
from the HTML Standard, and fail this test.
2. Adds new tests for `<input>` and `<button>` to assert that when they
are focused and subsequently removed from the DOM, the `blur` event
is *not* fired, per the HTML Standard. Chromium fails this test,
while Safari and Firefox pass it.
[1]: https://dom.spec.whatwg.org/#concept-node-remove-ext
Bug:
40150299
Change-Id: I0aa43755ccac8ea432056800c5c4167d8e4460e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/
5323158
Commit-Queue: Dominic Farolino <dom@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#
1266801}
--
wpt-commits:
2c931feab8ac744f9bbe3e9550cc2fe85831fc47
wpt-pr: 44774