Skip to content

Commit

Permalink
Setting innerHTML in a template element in an inactive document shoul…
Browse files Browse the repository at this point in the history
…d not crash.

Bug: 1100176
Test: html/semantics/scripting-1/the-template-element/template-element/template-set-inner-html-in-inactive-document-crash.html
Change-Id: I1d2ad61aead0d8f14952ae9b8e49d855d773e86f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2273798
Auto-Submit: Nate Chapin <[email protected]>
Reviewed-by: Mason Freed <[email protected]>
Commit-Queue: Nate Chapin <[email protected]>
Cr-Commit-Position: refs/heads/master@{#783693}
  • Loading branch information
natechapin authored and chromium-wpt-export-bot committed Jun 29, 2020
1 parent ebe69e9 commit 825a7c1
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<iframe id="i"></iframe>
<script>
var doc = i.contentDocument;
i.remove();
doc.createElement("template").innerHTML = "";
</script>

0 comments on commit 825a7c1

Please sign in to comment.