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

Yury Semikhatsky
Reported 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.
Attachments
Test case (218 bytes, text/html)
2010-01-15 05:50 PST, Yury Semikhatsky
no flags
Yury Semikhatsky
Comment 1 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'
Alexey Proskuryakov
Comment 2 2010-01-15 13:41:47 PST
*** This bug has been marked as a duplicate of bug 14547 ***
Note You need to log in before you can comment on or make changes to this bug.