#809 closed defect (fixed)
dom.isNode is defined incorrectly [patch]
Reported by: | Owned by: | dylan | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | DOM | Version: | 0.3 |
Keywords: | dom | Cc: | |
Blocked By: | Blocking: |
Description
The typeof Element, a class, is correctly identified as 'function' if it is defined. Thus, dom.isNode should test if typeof Element == 'function' instead of 'object'.
Only tested on Firefox 1.5.0.3 WinXP but it involves JavaScript? spec.
Attachments (1)
Change History (7)
comment:1 Changed 15 years ago by
Milestone: | → 0.4 |
---|
Changed 15 years ago by
Attachment: | dom_isNode_patch added |
---|
comment:2 Changed 15 years ago by
comment:3 Changed 15 years ago by
Summary: | dom.isNode is defined incorrectly → dom.isNode is defined incorrectly [patch] |
---|
(changed trac title)
comment:4 Changed 14 years ago by
Component: | Core → DOM |
---|---|
Owner: | changed from anonymous to dylan |
Status: | new → assigned |
comment:5 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Thanks for the patch gavin, fixed in [4973]
Note: See
TracTickets for help on using
tickets.
Submitted this (trivial) patch after some ad-hoc testing in Firefox, IE6 and Safari. typeof Element is either undefined or 'function' in all browsers.