WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
VERIFIED FIXED
5710
item(i) should return the same result as [i]
https://bugs.webkit.org/show_bug.cgi?id=5710
Summary
item(i) should return the same result as [i]
mitz
Reported
2005-11-11 09:20:13 PST
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.
Attachments
testcase
(412 bytes, text/html)
2005-11-11 09:26 PST
,
mitz
no flags
Details
Naive patch
(682 bytes, patch)
2005-11-11 10:04 PST
,
mitz
ggaren
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
mitz
Comment 1
2005-11-11 09:26:54 PST
Created
attachment 4665
[details]
testcase
mitz
Comment 2
2005-11-11 10:04:15 PST
Created
attachment 4666
[details]
Naive patch
Eric Seidel (no email)
Comment 3
2005-11-26 18:15:39 PST
Better if test cases dump as text. Even better if they're attached as patches (for easy landing). Thanks for the patch!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug