Bug 25310
| Summary: | HTMLSelectElement should return named options | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Dave Moore <davemoore> |
| Component: | New Bugs | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Eric Seidel (no email)
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
rniwa@webkit.org - Is this done already or no need anymore? Thanks!
Ryosuke Niwa
We do support this.