blob: 064cefcf5034f06d034a6ec3ae92fe7e2effe577 [file] [log] [blame]
<html xmlns="">
<title>Mixed content: HTML inside SVG without foreignObject</title>
<p><input type="text" size="50" id="test" value="This test has FAILED. (script did not run)"/></p>
<p>It should say "PASSED" above and there should be a green circle below.</p>
<svg xmlns="" height="200" width="200">
<circle cx="50" cy="50" r="50" fill="green"/>
<label for="test" xmlns="">FAIL: This should not be rendered.</label>
<script type="text/javascript"><![CDATA[
document.getElementById('test').value = 'This test has FAILED.';
var x = document.getElementsByTagNameNS('', 'label')[0].htmlFor;
if (x && x == 'test') {
document.getElementById('test').value = 'This test has PASSED.';