Skip to content

Commit

Permalink
Ensure cloning a template element into an inactive document does not …
Browse files Browse the repository at this point in the history
…crash.

Bug: 1092047
Test: html/semantics/scripting-1/the-template-element/template-element/template-element-clone-into-inactive-document-crash.html
Change-Id: I7d515c25294fe661781d14d53053dbf1d3be49f9
  • Loading branch information
natechapin authored and chromium-wpt-export-bot committed Jun 8, 2020
1 parent 68ed6f9 commit d13ffac
Showing 1 changed file with 7 additions and 0 deletions.
@@ -0,0 +1,7 @@
<template id="t"> </template>
<iframe id="i"></iframe>
<script>
var doc = i.contentDocument;
i.remove();
doc.importNode(t, true);
</script>

0 comments on commit d13ffac

Please sign in to comment.