Bug 591198: Display element using normal layout rules if XBL binding fails for securi...
[mozilla-central.git] / content / xbl / test / file_bug591198_inner.html
blob12fc9f58348f36c5a41d5ada4a06bf6ad2dd91cf
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <style>
5 #b {
6 -moz-binding: url("file_bug591198_xbl.xml#xbltest");
8 span {
9 white-space: nowrap;
11 </style>
12 <script>
13 function sendResults() {
14 var res = {
15 widths: []
18 ps = document.getElementsByTagName('span');
19 for (var i = 0; i < ps.length; i++) {
20 res.widths.push(ps[i].offsetWidth);
23 try {
24 res.anonChildCount =
25 document.getAnonymousNodes(document.getElementById('b')).length;
27 catch (ex) {}
29 parent.postMessage(JSON.stringify(res), "*");
31 </script>
32 </head>
33 <body onload="sendResults();">
34 <div><span id=b>long long text here</span></div>
35 <div><span>long long text here</span></div>
36 <div><span>PASS</span></div>
37 </body>
38 </html>