blob: d65ca85bee22ed31754cc4b9299c110525502ac7 [file] [log] [blame]
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
</head>
<body>
<!-- Makes scripts nested scripts run immediately and don't hang.
Test passes if nested script runs before inline script finishes. -->
<div id="console"></div>
<svg>
<g>
<rect id="test">
<script>
nested = document.createElement("script");
nested.innerHTML = 'debug("nested script ran!");';
document.getElementsByTagName("head")[0].appendChild(nested);
debug("inline script done!");
</script>
</rect>
</g>
</svg>
</body>
</html>