Skip to content

Commit

Permalink
HTML: Test that <details open> fires the event even from the parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Apr 3, 2019
1 parent fe3d5d9 commit 5100ecd
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,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 5100ecd

Please sign in to comment.