Bug 15089
| Summary: | typeof childNodes is reported as "function" | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Mark Rowe (bdash) <mrowe> |
| Component: | DOM | Assignee: | 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)
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
mitz
*** This bug has been marked as a duplicate of 14547 ***