nodelist-item-call-as-function.js revision eff69b907ef2cd3a9af0351287a929c66f58e3f6
1description('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.');
2
3var nodeList = document.getElementsByTagName('div');
4shouldBe("nodeList[0]", "nodeList(0)");
5shouldBe("!nodeList[nodeList.length]", "!nodeList(nodeList.length)");
6
7var successfullyParsed = true;
8
9