summaryrefslogtreecommitdiff
path: root/dom/base/crashtests/609560-1.xhtml
blob: 7849c8db733efb71420242e1ad182de51de99b19 (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
30
31
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<head>
<script>
<![CDATA[

function x()
{
 var p = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
 var frame = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
 frame.onload = y;
 frame.src = "data:text/html,1";
 document.body.appendChild(frame);
 var frameRoot = frame.contentDocument.documentElement;

  function y()
  {
    var frameDoc = frameRoot.ownerDocument;
    frameRoot.appendChild(p);
    var attr = frameDoc.createAttributeNS("http://www.w3.org/1999/xhtml", "u");
    attr.w = {};
    p.setAttributeNode(attr);
    document.documentElement.removeAttribute("class");
  }
}

]]>
</script>
</head>

<body onload="setTimeout(x, 0);"></body>
</html>