WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
159192
Web Inspector: selectElement.options shows unexpected entries in console (named indexes beyond collection length)
https://bugs.webkit.org/show_bug.cgi?id=159192
Summary
Web Inspector: selectElement.options shows unexpected entries in console (nam...
Joseph Pecoraro
Reported
2016-06-27 21:16:35 PDT
Summary: selectElement.options shows unexpected entries in console (named indexes beyond collection length) Test: <select id="x"> <option name="1" id="attr_1" value="1"></option> </select> Steps to Reproduce: 1. js> x.options 2. Expand => Expected just the 1 option, instead saw the single option duplicated Notes: - options.length is (1), and [0] is the one option. However, "named index" ["1"] is because the <option> has a name of 1. - We will just treat arrayLike objects more like Arrays, even if they are small, only provide values for 0..length - Note this is special because in a collection the named indexes, though numeric, do not affect length. You can't do that with arrays.
Attachments
[PATCH] Proposed Fix
(6.50 KB, patch)
2016-06-27 21:21 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews126 for ios-simulator-wk2
(3.32 MB, application/zip)
2016-06-27 22:19 PDT
,
Build Bot
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2016-06-27 21:21:24 PDT
Created
attachment 282208
[details]
[PATCH] Proposed Fix
Build Bot
Comment 2
2016-06-27 22:19:11 PDT
Comment on
attachment 282208
[details]
[PATCH] Proposed Fix
Attachment 282208
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/1584212
New failing tests: animations/multiple-backgrounds.html
Build Bot
Comment 3
2016-06-27 22:19:15 PDT
Created
attachment 282211
[details]
Archive of layout-test-results from ews126 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews126 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.4
WebKit Commit Bot
Comment 4
2016-06-28 08:34:10 PDT
Comment on
attachment 282208
[details]
[PATCH] Proposed Fix Clearing flags on attachment: 282208 Committed
r202568
: <
http://trac.webkit.org/changeset/202568
>
WebKit Commit Bot
Comment 5
2016-06-28 08:34:15 PDT
All reviewed patches have been landed. Closing bug.
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