layout/reftests/bugs/315920-20.svg

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     1 <?xml version="1.0" standalone="no"?>
     2 <?xml-stylesheet href="315920-20-style.css" type="text/css"?>
     4 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
     5   "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
     6 <svg width="4in" height="3in" version="1.1"
     7      xmlns="http://www.w3.org/2000/svg"
     8      xmlns:xlink="http://www.w3.org/1999/xlink"
     9      class="reftest-wait">
    10   <desc>This graphic links to an external image
    11   </desc>
    12   <script type="text/javascript"> <![CDATA[
    13     function onloadHandler() {
    14       var image = document.getElementById("i1");
    15       image.addEventListener("load",
    16                              function() {
    17                               document.documentElement.removeAttribute("class");
    18                              },
    19                              false);
    20       image.setAttributeNS("http://www.w3.org/1999/xlink",
    21                            "href", "solidblue.png");
    22     }
    23     window.addEventListener("load", onloadHandler, false);
    24     ]]>
    25   </script>
    26   <image id="i1" x="200" y="200" width="100px" height="80px"
    27          xlink:href="no-such-scheme:nothing">
    28   </image>
    29   <circle cx="100" cy="50" r="40" stroke="black" stroke-width="2" fill="red"/>
    30 </svg>

mercurial