summaryrefslogtreecommitdiffstats
path: root/dom/xbl/crashtests/336960-1-inner.xhtml
blob: 2064f897795c9d1e3b00e9eb83250f17fd85bfce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <script>
    var x=document.createElementNS('http://www.w3.org/1999/xhtml','style');
    document.documentElement.appendChild(x);
    function doe(){
      var y=document.getElementsByTagName('style')[0];
    }
    setTimeout(doe,500);
  </script>

  <style>
  style {-moz-binding:url(#randomxbl);}
  </style>

  <bindings xmlns="http://www.mozilla.org/xbl">
    <binding id="randomxbl">
      <implementation>
        <constructor>
          var x= parent.document.getElementsByTagName('iframe')[0];
x.parentNode.removeChild(x);
        </constructor>
      </implementation>
    </binding>
  </bindings>
</head>
<body>
</body>
</html>