<!DOCTYPE html>
<body>
<script src="../../../resources/js-test-pre.js"></script>
<script>
var testVal = 'script has not run';
</script>
<!-- FIXME: Add non-flaky test for <img> tags -->
<template><script>window.testVal = 'script has run';</script></template>
<script>
description('The test asserts that elements within template contents are "inert", e.g. script does not run.');
shouldBeEqualToString('testVal', 'script has not run');
var templateContent = document.querySelector('template').content;
document.body.appendChild(templateContent);
shouldBeEqualToString('testVal', 'script has run');
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
