https://github.com/mozilla/gecko-dev
Raw File
Tip revision: eb24259e00e59d852adfdfc21432f959dfa206f7 authored by ffxbld on 26 June 2015, 06:05:46 UTC
Added FENNEC_39_0_RELEASE FENNEC_39_0_BUILD2 tag(s) for changeset 3a9878cc0371. DONTBUILD CLOSED TREE a=release
Tip revision: eb24259
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