content/xbl/crashtests/472260-1.xhtml
author Ed Morley <emorley@mozilla.com>
Mon, 14 May 2012 21:05:24 +0100
changeset 93909 3f7291bc4efc003964fb98b1390019771042f3ac
parent 24175 fac6e3b97067979d12199ad66204bc27d48e4ac6
child 145620 d15d14b1e637f751d3fdeeb092129ad0e8ac3532
permissions -rw-r--r--
Backout 345ae68f15f4, b3b40121ac8d, 0d18b7a246d7, 9dbb6064ab58, dee9d7fa8eb6, 63eec6bfa948, 323c6be7cfe8 & f4aac7523a48 (bug 732875) for compilation failures

<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>