Skip to content

HTML: Add tests for resource selection and moving nodes#60466

Open
zcorpan wants to merge 2 commits into
masterfrom
zcorpan/resource-selection-move
Open

HTML: Add tests for resource selection and moving nodes#60466
zcorpan wants to merge 2 commits into
masterfrom
zcorpan/resource-selection-move

Conversation

@zcorpan

@zcorpan zcorpan commented Jun 8, 2026

Copy link
Copy Markdown
Member

See whatwg/html#12511

(I used ChatGPT to help write these tests.)


window.onload = t.step_func(function() {
assert_equals(a, 1, 'error events on a');
assert_equals(b, 1, 'error events on b');

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is correct per spec, but we could change the spec to stop firing error events on moved or removed source elements (at least if the parent is no longer the original media element).

@zcorpan zcorpan marked this pull request as ready for review June 12, 2026 11:09
@wpt-pr-bot wpt-pr-bot requested review from annevk, foolip, jdm and jgraham June 12, 2026 11:09
@zcorpan zcorpan requested a review from nicolo-ribaudo June 12, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants