2008-05-02 14:39:06 -07:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<style>
|
|
|
|
#div1 {
|
|
|
|
color: green;
|
|
|
|
-moz-binding: url(file_bug379959_xbl.xml#xbltest);
|
|
|
|
}
|
|
|
|
#div2 {
|
|
|
|
color: green;
|
|
|
|
-moz-binding: url(http://example.com/tests/content/xbl/test/file_bug379959_xbl.xml#xbltest);
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<body>
|
|
|
|
<div id="div1"></div>
|
|
|
|
<div id="div2"></div>
|
|
|
|
<script>
|
|
|
|
onload = function() {
|
2013-09-06 09:12:56 -07:00
|
|
|
nodes = SpecialPowers.wrap(document).getAnonymousNodes(document.getElementById('div1'));
|
2010-03-12 13:53:36 -08:00
|
|
|
parent.postMessage(nodes ? nodes.length : 0, "http://mochi.test:8888");
|
2013-09-06 09:12:56 -07:00
|
|
|
nodes = SpecialPowers.wrap(document).getAnonymousNodes(document.getElementById('div2'));
|
2010-03-12 13:53:36 -08:00
|
|
|
parent.postMessage(nodes ? nodes.length : 0, "http://mochi.test:8888");
|
2008-05-02 14:39:06 -07:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</html>
|