blob: 62c00eb2e5732d54e7aa3019bf1692bc6eb56118 [file] [log] [blame]
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="test()">
<image id="image" xlink:href="" width="75" height="75" />
<script>
if (window.testRunner)
testRunner.waitUntilDone();
function test() {
// remove
document.getElementById("image").removeAttributeNS("http://www.w3.org/1999/xlink", "href", "");
document.getElementById("image").setAttribute("display", "none");
// set
document.getElementById("image").setAttributeNS("http://www.w3.org/1999/xlink", "href", "resources/green-checker.png");
document.getElementById("image").setAttribute("display", "inherit");
if (window.testRunner)
testRunner.notifyDone();
}
</script>
</svg>