Skip to content

Commit

Permalink
Bug 1862371 [wpt PR 16244] - HTML: Test that <details open> fires the…
Browse files Browse the repository at this point in the history
… event even from the parser., a=testonly

Automatic update from web-platform-tests
HTML: Test that <details open> fires the event even from the parser.

whatwg/html#4500

--

wpt-commits: 06854ec7854c9061b84a8d675ff6fb8f0dcd08fc
wpt-pr: 16244
  • Loading branch information
emilio authored and moz-wptsync-bot committed Nov 14, 2023
1 parent 44a4f48 commit 0d88be1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,9 @@
t10.done();
}, 0);

async_test(function(t) {
new DOMParser().parseFromString("<details open>", "text/html").querySelector("details").ontoggle = t.step_func_done(function(e) {
assert_true(e.target.open);
});
}, "Setting open from the parser fires a toggle event");
</script>

0 comments on commit 0d88be1

Please sign in to comment.