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

UltraBlame original commit: 93d1a7cfc9b50da825cb82bd72fabbd30218c41f
  • Loading branch information
marco-c committed Nov 16, 2023
1 parent 5901bc6 commit f2f4899
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 f2f4899

Please sign in to comment.