summaryrefslogtreecommitdiffstats
path: root/dom/svg/crashtests/723441-1.html
blob: 959e9fa9532b2e39d94fc78f0afee325422e0228 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html class="reftest-wait">
  <body>
    <img id="x">
    <script>
      var xhr = new XMLHttpRequest();
      xhr.open("GET", "723441-resource.svg");
      xhr.overrideMimeType( 'text/plain; charset=x-user-defined' );
      xhr.onreadystatechange = function() {
        if (xhr.readyState == 4) {
          var svg = xhr.responseText.replace(/#/g, '%23');
          var img = document.getElementById("x");
          img.onload = function() {
            document.documentElement.className = "";
          }
          img.src = "data:image/svg+xml;," + svg;
        }
      }
      xhr.send();
    </script>
  </body>
</html>