blob: 08f5f004066a98c208e0e4f7bfaff02dcbb5f640 [file] [log] [blame]
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>&lt;script&gt;-in-&lt;svg&gt; test</title>
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
</head>
<body>
<svg height="360" version="1.1" viewBox="0 0 360 360" width="360">
<text id='t' x='100' y='100' fill='black' font-size='72'>FAIL</text>
<script>
var el = document.getElementById('t');
var t = document.createTextNode('PASS');
el.replaceChild(t, el.firstChild);
</script>
</svg>
<p>Do you see "PASS" above? That means &lt;script&gt;-in-&lt;svg&gt;-in-HTML works OK.</p>
</body>
</html>