file_bug706301.html (914B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <script type="application/javascript"> 5 window.addEventListener('message', doContentTest); 6 7 function doContentTest() { 8 9 // This has always worked. 10 var nodelist1 = document.getElementsByTagName('details'); 11 Object.getOwnPropertyDescriptor(nodelist1, 'length'); 12 ok(nodelist1['length'] == 0, "Content should be able to get the length of " + 13 "its own nodelist after calling getOwnPropertyDescriptor."); 14 15 // This is bug 706301. 16 var nodelist2 = document.getElementsByTagName('section'); 17 ok(getLengthInChrome(nodelist2), "Chrome should be able to get the length of " + 18 "content nodelist after calling getOwnPropertyDescriptor."); 19 20 // All done. 21 finishTestInChrome(); 22 } 23 </script> 24 </head> 25 <body> 26 </body> 27 </html>