Bug 24839

Summary: HTMLCollection prototype problem
Product: WebKit Reporter: bugzilla33 <bugzilla33>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: https://bug485324.bugzilla.mozilla.org/attachment.cgi?id=369461
Attachments:
Description Flags
source none

bugzilla33
Reported 2009-03-26 02:07:13 PDT
1. Run HTMLCollection.html from attachement or from URL 2. Should alert value: 2 3. Try on IE 8.0 - works perfect
Attachments
source (669 bytes, text/html)
2009-03-26 02:08 PDT, bugzilla33
no flags
bugzilla33
Comment 1 2009-03-26 02:08:02 PDT
Sam Weinig
Comment 2 2009-03-26 07:12:07 PDT
I believe our behavior is correct as the getElementsByTagName function returns a NodeList and not a HTMLCollection, so modifying the prototype of HTMLCollection is not supposed to work.
bugzilla33
Comment 3 2009-03-26 08:58:42 PDT
OK, Konqueror, Opera, Chrome also return a a NodeList not a HTMLCollection.
Note You need to log in before you can comment on or make changes to this bug.