Bug 15089 - typeof childNodes is reported as "function"
Summary: typeof childNodes is reported as "function"
Status: RESOLVED DUPLICATE of bug 14547
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL: javascript:alert(typeof document.body...
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2007-08-27 01:45 PDT by Mark Rowe (bdash)
Modified: 2007-08-27 02:44 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***