2008-01-07 02:42:33 +03:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
|
|
|
|
<head>
|
|
|
|
<bindings xmlns="http://www.mozilla.org/xbl">
|
|
|
|
|
|
|
|
<binding id="x"><content>
|
|
|
|
<zzz><children/></zzz>
|
|
|
|
</content></binding>
|
|
|
|
|
|
|
|
<binding id="empty"><content>
|
|
|
|
</content></binding>
|
|
|
|
|
|
|
|
</bindings>
|
|
|
|
|
|
|
|
<script>
|
2008-01-29 10:32:24 +03:00
|
|
|
<![CDATA[
|
2008-01-07 02:42:33 +03:00
|
|
|
|
|
|
|
var xbltarget;
|
|
|
|
|
|
|
|
function boom1()
|
|
|
|
{
|
|
|
|
xbltarget = document.getElementById("xbltarget");
|
|
|
|
xbltarget.style.MozBinding = "url('#x')";
|
2008-01-29 11:56:13 +03:00
|
|
|
setTimeout(boom2, 0);
|
2008-01-07 02:42:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
function boom2()
|
|
|
|
{
|
2008-01-29 11:56:13 +03:00
|
|
|
var nodes = document.getAnonymousNodes(xbltarget);
|
|
|
|
if (!nodes) {
|
2008-01-29 12:39:15 +03:00
|
|
|
setTimeout(boom2, 10);
|
2008-01-29 11:56:13 +03:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
var anox = nodes[0];
|
2008-01-07 02:42:33 +03:00
|
|
|
var frame = document.createElementNS("http://www.w3.org/1999/xhtml", "frame")
|
2008-01-29 10:32:24 +03:00
|
|
|
frame.src = "data:text/html,<html><body>Hi!</body></html>";
|
2008-01-07 02:42:33 +03:00
|
|
|
anox.appendChild(frame);
|
|
|
|
xbltarget.style.MozBinding = "url('#empty')";
|
|
|
|
|
|
|
|
document.documentElement.removeAttribute("class");
|
|
|
|
}
|
|
|
|
|
2008-01-29 10:32:24 +03:00
|
|
|
]]>
|
2008-01-07 02:42:33 +03:00
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body onload="boom1()">
|
|
|
|
<div id="xbltarget"></div>
|
|
|
|
</body>
|
|
|
|
</html>
|