blob: c8c2a47ae52dc13b2a659856ff4f5d0e558febc6 [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.layoutTestController)
layoutTestController.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.layoutTestController)
layoutTestController.notifyDone();
}
</script>
</svg>