dom/base/crashtests/609560-1.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/base/crashtests/609560-1.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
     1.5 +<head>
     1.6 +<script>
     1.7 +<![CDATA[
     1.8 +
     1.9 +function x()
    1.10 +{
    1.11 + var p = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
    1.12 + var frame = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
    1.13 + frame.onload = y;
    1.14 + frame.src = "data:text/html,1";
    1.15 + document.body.appendChild(frame);
    1.16 + var frameRoot = frame.contentDocument.documentElement;
    1.17 +
    1.18 +  function y()
    1.19 +  {
    1.20 +    var frameDoc = frameRoot.ownerDocument;
    1.21 +    frameRoot.appendChild(p);
    1.22 +    var attr = frameDoc.createAttributeNS("http://www.w3.org/1999/xhtml", "u");
    1.23 +    attr.w = {};
    1.24 +    p.setAttributeNode(attr);
    1.25 +    document.documentElement.removeAttribute("class");
    1.26 +  }
    1.27 +}
    1.28 +
    1.29 +]]>
    1.30 +</script>
    1.31 +</head>
    1.32 +
    1.33 +<body onload="setTimeout(x, 0);"></body>
    1.34 +</html>

mercurial