Bug 15089

Summary: typeof childNodes is reported as "function"
Product: WebKit Reporter: Mark Rowe (bdash) <mrowe>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal Keywords: HasReduction
Priority: P2    
Version: 523.x (Safari 3)   
Hardware: Mac   
OS: OS X 10.5   
URL: javascript:alert(typeof document.body.childNodes)

Mark Rowe (bdash)
Reported 2007-08-27 01:45:04 PDT
I noticed this while browsing the jQuery source code. javascript:alert(typeof document.body.childNodes) displays "function". Curiously enough, document.body.childNodes() does appear to be callable! In Firefox it displays "object" and document.body.childNodes is not callable.
Attachments
mitz
Comment 1 2007-08-27 02:44:42 PDT
*** This bug has been marked as a duplicate of 14547 ***
Note You need to log in before you can comment on or make changes to this bug.