<!DOCTYPE html>
<div>Test passes if it does not crash</div>
<script src="../../../resources/gc.js"></script>
<script>
if (window.testRunner) testRunner.dumpAsText();
var template = document.createElement('template');
var content = template.content;
template = null;
gc();
content.appendChild(document.createElement('div'));
</script>