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)

Description Mark Rowe (bdash) 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.
Comment 1 mitz 2007-08-27 02:44:42 PDT

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