Skip to content

Commit

Permalink
HTML: mutating the style element
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Dec 5, 2019
1 parent 839b6b8 commit 15f84a8
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
test(() => {
const style = document.body.appendChild(document.createElement("style")),
styleS = style.sheet;
assert_not_equals(styleS, null);
style.appendChild(new Comment());
assert_equals(styleS, style.sheet);
}, "Mutating the style element: inserting a Comment node");

0 comments on commit 15f84a8

Please sign in to comment.