[Webkit-unassigned] [Bug 74468] New: Incorrect behavior for HTMLCollection.prototype.item(someString)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 13 17:29:47 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=74468
Summary: Incorrect behavior for
HTMLCollection.prototype.item(someString)
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: bzbarsky at mit.edu
Created an attachment (id=119120)
--> (https://bugs.webkit.org/attachment.cgi?id=119120&action=review)
Testcase
Webkit apparently treats item() on form.elements and other HTMLCollections as an alias for namedItem if a string is passed or something. This is wrong per the spec at http://www.whatwg.org/specs/web-apps/current-work/multipage/common-dom-interfaces.html#htmlformcontrolscollection as well as per the DOM 2 HTML spec. See the attached testcase; it should say "PASS" twice.
BUILD: Current WebKit nightly.
STEPS TO REPRODUCE:
Load attached testcase.
EXPECTED RESULTS: 2 lines that say "PASS"
ACTUAL RESULTS: 2 lines that say "FAIL"
Gecko and Presto both get this right.
--
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