[Webkit-unassigned] [Bug 101311] New: Make namedItem return a node list only in HTMLFormControlsCollection and HTMLOptionsCollection
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 5 23:32:52 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=101311
Summary: Make namedItem return a node list only in
HTMLFormControlsCollection and HTMLOptionsCollection
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: rniwa at webkit.org
CC: sam at webkit.org, abarth at webkit.org, arv at chromium.org,
rakuco at webkit.org
DOM4 and HTML5 specifications make HTMLFormControlsCollection and HTMLOptionsCollection’s namedItem and named getter return a node list when there are multiple matches.
However, by default HTMLCollection’s namedItem and named getter returns the first item that matched the name, and this behavior can be much more efficient since it can stop the search as soon as it finds the first match. We should introduce the former two interfaces (they’re currently both implemented as HTMLCollection in WebKit) so that we can confine the said obnoxious, inefficient, behavior to those two interfaces.
--
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