blob: c032d85850813577c95b37161f0b5b6099b918a3 [file] [log] [blame]
<!DOCTYPE html>
<p>PASS if no crash.</p>
<svg>
<rect width="100" height="100" fill="green"/>
<defs>
<rect id="a" width="100" height="100" fill="red"/>
</defs>
<use xlink:href="#a"/>
</svg>
<script>
onload = function() {
if (window.testRunner)
testRunner.dumpAsText();
var use = document.querySelector('use');
use.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', 'invalid-remote.svg');
document.getElementById('a').setAttribute('width', 200);
use.setAttribute('width', 100);
}
</script>