Bug 33716

Summary: typeof returns "function" for NodeList
Product: WebKit Reporter: Yury Semikhatsky <yurys>
Component: WebCore JavaScriptAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Test case none

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 ***