Summary: For certain HTML DOM nodes, node[i] runs through a special collection, e.g. for an HTMLSelectElement, it runs through its options, ignoring other child nodes. On the other hand, node.item (i) always returns the ith child. It should behave like node[i]. The attached testcase checks whether item(0) returns the first option for the select or the anonymous text child.
Created attachment 4665 [details] testcase
Created attachment 4666 [details] Naive patch
Better if test cases dump as text. Even better if they're attached as patches (for easy landing). Thanks for the patch!