Closed
Bug 389129
Opened 17 years ago
Closed 17 years ago
e4x: for(i in xml) gives indexes of xml.children()
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 386388
People
(Reporter: BijuMailList, Unassigned)
Details
Attachments
(2 files)
This is odd...
I am not sure this is a e4x implementation bug.
e4x: for(i in xml) gives indexes of xml.children()
if "x = <a> <b>x</b> <b>x</b> </a>;"
then "for(j in x)" gives "0" and "1" as value of "j"
but "1 in x" is "false" and "x[1]" is "undefined"
see attachment "for_i_in_e4x.html" for test cases
Comment 2•17 years ago
|
||
I think that this is a duplicate of bug 386388 and that a for-each-in statement also gives a wrong result.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•