blob: 6bee01d9df7429ce844ed8a3894c9dddb35eb065 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<p>Tests createContextualFragment does not execute scripts immediately. You should see PASS below:</p>
<div id="test"></div>
<script>
var range = document.createRange();
var node = document.getElementById("test");
var count = 0;
range.selectNodeContents(node);
range.createContextualFragment("<script> count++; </script" + ">");
node.textContent = !count ? 'PASS' : 'FAIL - expected no execution but executed ' + count + ' times';
if (window.testRunner)
testRunner.dumpAsText();
</script>
</body>
</html>