2007-11-19 20:18:59 -08:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
|
|
|
|
<head>
|
|
|
|
<style>
|
|
|
|
div { color: green; }
|
|
|
|
|
|
|
|
#test1, #test2 {
|
2008-04-23 21:41:33 -07:00
|
|
|
-moz-binding: url(403962-1xbl.xml#test);
|
2007-11-19 20:18:59 -08:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body onload="runTest()">
|
|
|
|
<div id="test1"/>
|
|
|
|
<div id="test2">
|
|
|
|
<!-- Make the script load, so the binding loads first -->
|
|
|
|
<script src="data:text/javascript,document.body.offsetWidth;"/>
|
|
|
|
<!-- The whitespace here is important... or this comment will do
|
|
|
|
the trick too -->
|
2011-11-17 20:07:56 -08:00
|
|
|
<span> test</span>
|
2007-11-19 20:18:59 -08:00
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
function runTest() {
|
|
|
|
var n = document.getElementById("test1");
|
|
|
|
n.appendChild(makeSpan());
|
|
|
|
|
|
|
|
document.documentElement.className = "";
|
|
|
|
}
|
|
|
|
|
|
|
|
function makeSpan() {
|
|
|
|
var s = document.createElementNS("http://www.w3.org/1999/xhtml",
|
|
|
|
"span");
|
2011-11-17 20:07:56 -08:00
|
|
|
s.appendChild(document.createTextNode(" test"));
|
2007-11-19 20:18:59 -08:00
|
|
|
return s;
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|