content/xbl/test/file_bug379959_cross.html
author Honza Bambas <honzab.moz@firemni.cz>
Thu, 21 May 2009 00:27:31 +0200
changeset 28676 f1c65acaccf363aa6d073ef5b958320071848e38
parent 14902 da3a8e06916f8c2ecdf7c50892d6a7eab75326c2
child 39054 b4372055f473cb39d74dbe97e0206dd61ccc2547
permissions -rw-r--r--
Bug 455070 - Make sessionStorage object conform the WHATWG spec, r+sr=jst

<!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() {
  nodes = document.getAnonymousNodes(document.getElementById('div1'));
  parent.postMessage(nodes ? nodes.length : 0, "http://localhost:8888");
  nodes = document.getAnonymousNodes(document.getElementById('div2'));
  parent.postMessage(nodes ? nodes.length : 0, "http://localhost:8888");
}
</script>
</html>