summaryrefslogtreecommitdiff
path: root/dom/svg/crashtests/369291-1.svg
blob: 222d0c2accac7c56420a96a6f25b28e88ef26777 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:html="http://www.w3.org/1999/xhtml"
     onload="setTimeout(boom, 30);"
     class="reftest-wait">

<html:script>

function boom()
{
  try {
    document.getElementById("defs").getBBox();
  } catch(e) {
    // getBBox is expected to throw, because defs is not displayed.
    document.documentElement.removeAttribute("class");
  }
}

</html:script>

<defs id="defs" />

</svg>