Bug 24839 - HTMLCollection prototype problem
Summary: HTMLCollection prototype problem
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: https://bug485324.bugzilla.mozilla.or...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-26 02:07 PDT by bugzilla33
Modified: 2009-10-15 11:38 PDT (History)
0 users

See Also:


Attachments
source (669 bytes, text/html)
2009-03-26 02:08 PDT, bugzilla33
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description bugzilla33 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
Comment 1 bugzilla33 2009-03-26 02:08:02 PDT
Created attachment 28965 [details]
source
Comment 2 Sam Weinig 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.  
Comment 3 bugzilla33 2009-03-26 08:58:42 PDT
OK, Konqueror, Opera, Chrome also return a a NodeList not a HTMLCollection.