blob: 5ce3fa7b123a14048d20dd24038df740d20400e6 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">
<!-- Test for https://bugs.webkit.org/show_bug.cgi?id=104004 -->
<use id="use" xlink:href="foo.svg#foo"/>
<text>PASS: did not crash.</text>
<script xlink:href="../../resources/js-test-pre.js"></script>
<script>
var use = document.getElementById('use');
use.setAttribute('xlink:href', 'bar.svg#bar');
use.parentNode.removeChild(use);
use = null;
gc();
if (window.testRunner)
testRunner.dumpAsText();
</script>
</svg>