file_bug706301.html 914 B

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