Bug 25310

Summary: HTMLSelectElement should return named options
Product: WebKit Reporter: Dave Moore <davemoore>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, ap, bfulgham, cdumez, mike, rniwa, sam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Bug Depends on: 25191    
Bug Blocks:    

Dave Moore
Reported 2009-04-21 09:48:06 PDT
According to the HTML5 spec both HTMLSelectElement and HTMLOptionsCollection should allow property access to named options. This bug created a test case for this: https://bugs.webkit.org/show_bug.cgi?id=25191 The test is LayoutTests/fast/dom/HTMLSelectElement/resources/named-options.js Currently named options are possible only for HTMLOptionsCollection. It does the correct behavior of returning a single option element if only one has the name and a collection of option elements if more than one has the name.
Attachments
Eric Seidel (no email)
Comment 1 2009-04-21 10:28:40 PDT
This is supposedly a JSC only bug, since I guess the v8 bindings (or so I'm told) have already had this feature added.
Ahmad Saleem
Comment 2 2022-09-10 15:00:42 PDT
rniwa@webkit.org - Is this done already or no need anymore? Thanks!
Ryosuke Niwa
Comment 3 2022-09-10 15:05:27 PDT
We do support this.
Note You need to log in before you can comment on or make changes to this bug.