content/xbl/crashtests/472260-1.xhtml
author Drew Willcoxon <adw@mozilla.com>
Wed, 05 Jun 2013 17:07:55 -0700
changeset 134173 3f4ad11d56da4b29ee44fe238ecce312204cdc85
parent 24175 fac6e3b97067979d12199ad66204bc27d48e4ac6
child 146914 d15d14b1e637f751d3fdeeb092129ad0e8ac3532
permissions -rw-r--r--
Bug 856270 - Update spell checking to use nsIContentPrefService2 (part 4: update reftests). r=ehsan

<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<head>

<bindings xmlns="http://www.mozilla.org/xbl">
  <binding id="foo"><content><span xmlns="http://www.w3.org/1999/xhtml"/></content></binding>
  <binding id="bar"><content></content></binding>
</bindings>

<script type="text/javascript">
// <![CDATA[

function boom()
{
  var bo = document.getElementById("bo");
  var anon = document.getAnonymousNodes(bo)[0];

  bo.style.MozBinding = "url(#bar)";

  var fr = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
  fr.setAttribute("src", "javascript:void 0;"); 
  anon.appendChild(fr);
  
  document.documentElement.removeAttribute("class");
}

]]>
</script>
</head>

<body onload="setTimeout(boom, 100);">

<span style="-moz-binding: url(#foo)" id="bo"></span>

</body>
</html>