Bug 33716 - typeof returns "function" for NodeList
Summary: typeof returns "function" for NodeList
Status: RESOLVED DUPLICATE of bug 14547
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-15 05:50 PST by Yury Semikhatsky
Modified: 2010-01-15 13:41 PST (History)
0 users

See Also:


Attachments
Test case (218 bytes, text/html)
2010-01-15 05:50 PST, Yury Semikhatsky
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yury Semikhatsky 2010-01-15 05:50:23 PST
Created attachment 46676 [details]
Test case

In WebKit typeof returns "function" for document.documentElement.childNodes and other DOM properties whose value is a NodeList. It should be "object" as in Firefox and Chromium.

Test is attached.
Comment 1 Yury Semikhatsky 2010-01-15 06:24:46 PST
(In reply to comment #0)
> Created an attachment (id=46676) [details]
> Test case
> 
> In WebKit typeof returns "function" for document.documentElement.childNodes and
> other DOM properties whose value is a NodeList. It should be "object" as in
> Firefox and Chromium.
> 
> Test is attached.

typeof document.all is always 'undefined'
Comment 2 Alexey Proskuryakov 2010-01-15 13:41:47 PST

*** This bug has been marked as a duplicate of bug 14547 ***