RESOLVED FIXED 115150
HTMLOptionsCollection's namedItem and name getter should return the first item
https://bugs.webkit.org/show_bug.cgi?id=115150
Summary HTMLOptionsCollection's namedItem and name getter should return the first item
Ryosuke Niwa
Reported 2013-04-25 00:06:28 PDT
In http://trac.webkit.org/changeset/135093, I've made only HTMLOptionsCollection and HTMLFormControlsCollection's namedItem and name getter return node lists when there are multiple items of the same name. However, the specification has since been updated so that HTMLOptionsCollection::namedItem and its named getter only returns the first item when there are multiple items of the same name. http://www.whatwg.org/specs/web-apps/current-work/multipage/common-dom-interfaces.html#htmloptionscollection Fix this so that we can speed-up namedItem and name getter of HTMLOptionsCollection.
Attachments
Fixes the bug (10.11 KB, patch)
2013-04-25 00:18 PDT, Ryosuke Niwa
no flags
Archive of layout-test-results from webkit-ews-03 for mac-mountainlion (613.44 KB, application/zip)
2013-04-25 00:53 PDT, Build Bot
no flags
Fixed baselines (9.98 KB, patch)
2013-04-25 01:28 PDT, Ryosuke Niwa
no flags
Ryosuke Niwa
Comment 1 2013-04-25 00:18:45 PDT
Created attachment 199623 [details] Fixes the bug
Build Bot
Comment 2 2013-04-25 00:53:17 PDT
Comment on attachment 199623 [details] Fixes the bug Attachment 199623 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/139504 New failing tests: fast/dom/HTMLSelectElement/named-options.html fast/dom/html-collections-named-getter.html
Build Bot
Comment 3 2013-04-25 00:53:19 PDT
Created attachment 199626 [details] Archive of layout-test-results from webkit-ews-03 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-03 Port: mac-mountainlion Platform: Mac OS X 10.8.2
Ryosuke Niwa
Comment 4 2013-04-25 01:28:51 PDT
Created attachment 199632 [details] Fixed baselines
Andreas Kling
Comment 5 2013-04-25 05:39:17 PDT
Comment on attachment 199632 [details] Fixed baselines Very nice! r=me
WebKit Commit Bot
Comment 6 2013-04-25 11:31:00 PDT
Comment on attachment 199632 [details] Fixed baselines Clearing flags on attachment: 199632 Committed r149126: <http://trac.webkit.org/changeset/149126>
WebKit Commit Bot
Comment 7 2013-04-25 11:31:03 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.