https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 1c1ac9fcff5624021cc6807a5f15ed0b1796efc6 authored by ffxbld on 06 November 2016, 03:11:57 UTC
Added FENNEC_50_0_RELEASE FENNEC_50_0_BUILD1 tag(s) for changeset 3d81a5476f96. DONTBUILD CLOSED TREE a=release
Tip revision: 1c1ac9f
401993-1.html
<html class="reftest-wait">
<head>
<script>

function s()
{
  var x = document.getElementById("x");
  x.style.MozBinding = "url(401993-1.xml#foo)";
  
  setTimeout(boom, 0);
  
  function boom()
  {
    var nodes = SpecialPowers.unwrap(SpecialPowers.wrap(document).getAnonymousNodes(x));
    if (!nodes) {
      setTimeout(boom, 10);
      return;
    }

    var newSpan = document.createElement("span");
    newSpan.contentEditable = "true";
    nodes[0].appendChild(newSpan);
    x.parentNode.removeChild(x);
    
    document.documentElement.removeAttribute("class");
  }
}
</script>
</head>

<body onload="s();">

<span contenteditable="true"></span>

<div id="x"></div>

</body>
</html>
back to top