[Webkit-unassigned] [Bug 115150] New: HTMLOptionsCollection's namedItem and name getter should return the first item

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 25 00:08:10 PDT 2013


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

           Summary: HTMLOptionsCollection's namedItem and name getter
                    should return the first item
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Keywords: WebExposed
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rniwa at webkit.org
                CC: darin at apple.com, sam at webkit.org, koivisto at iki.fi,
                    benjamin at webkit.org, akling at apple.com


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.

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



More information about the webkit-unassigned mailing list