<!DOCTYPE html> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title><script>-in-<svg> 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 <script>-in-<svg>-in-HTML works OK.</p> | |
</body> | |
</html> |