Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / svg / custom / js-update-image-and-display3.svg
blob1c092fa3700b0273725f5406813c36bac63599fe
1 <?xml version="1.0"?>
2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="test()">
3 <image id="image" xlink:href="" width="75" height="75" />
4 <script>
5 if (window.layoutTestController)
6 layoutTestController.waitUntilDone();
8 function test() {
9 // set
10 document.getElementById("image").href.baseVal = "resources/green-checker.png";
11 document.getElementById("image").setAttribute("display", "inherit");
13 // unset
14 document.getElementById("image").setAttributeNS("http://www.w3.org/1999/xlink", "href", ""
16 document.getElementById("image").setAttribute("display", "none");
18 // set
19 document.getElementById("image").href.baseVal = "resources/green-checker.png";
20 document.getElementById("image").setAttribute("display", "inherit");
22 if (window.layoutTestController)
23 layoutTestController.notifyDone();
26 </script>
27 </svg>