[Webkit-unassigned] [Bug 25191] New: HTMLSelectElement doesn't return named options

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 14 15:33:31 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=25191

           Summary: HTMLSelectElement doesn't return named options
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: davemoore at google.com


chromium and Safari differ in the way they handle named option values.
According to the HTML5 spec named options should be accessible from both the
HTMLSelectElement and the HTMLOptionsCollection. If there is more than one
option with the same name, all should be returned as a collection. So if you
have:

<select id="sl1"><option value="Value" name="test" /></select>

and in JS code you do:
var test = document.getElementById("sl1").test

test should be a single HTMLOptionElement.

If instead you have:


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list