1eff69b907ef2cd3a9af0351287a929c66f58e3f6Steve Blockdescription('This tests that items in a NodeList can be retrieved directly by calling as a function with an integral index parameter, starting from 0.<br>It means NodeList[0] and NodeList(0) both work.'); 2eff69b907ef2cd3a9af0351287a929c66f58e3f6Steve Block 3eff69b907ef2cd3a9af0351287a929c66f58e3f6Steve Blockvar nodeList = document.getElementsByTagName('div'); 4eff69b907ef2cd3a9af0351287a929c66f58e3f6Steve BlockshouldBe("nodeList[0]", "nodeList(0)"); 5eff69b907ef2cd3a9af0351287a929c66f58e3f6Steve BlockshouldBe("!nodeList[nodeList.length]", "!nodeList(nodeList.length)"); 6eff69b907ef2cd3a9af0351287a929c66f58e3f6Steve Block 7eff69b907ef2cd3a9af0351287a929c66f58e3f6Steve Blockvar successfullyParsed = true; 8eff69b907ef2cd3a9af0351287a929c66f58e3f6Steve Block 9