1 <html> 2 <head> 3 <link rel="stylesheet" href="../../js/resources/js-test-style.css"> 4 <script src="../../js/resources/js-test-pre.js"></script> 5 </head> 6 <body> 7 <p id="description"></p> 8 <ol></ol> 9 10 <div id="console"></div> 11 12 <script> 13 description( 14 'This tests that indexed assignments to items of a NodeList do not override original values. ' + 15 'See http://code.google.com/p/chromium/issues/detail?id=27967'); 16 17 var nodeList = document.getElementsByTagName('ol'); 18 var first = nodeList[0]; 19 shouldBeFalse("first == null"); 20 21 nodeList[0] = null; 22 for (var i = 0; i < 13; i++) { 23 shouldBe("nodeList[0]", "first"); 24 } 25 26 var successfullyParsed = true; 27 </script> 28 <script src="../../js/resources/js-test-post.js"></script> 29 </body> 30 </html> 31