Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#809 closed defect (fixed)

dom.isNode is defined incorrectly [patch]

Reported by: [email protected] Owned by: dylan
Priority: high Milestone:
Component: DOM Version: 0.3
Keywords: dom Cc:
Blocked By: Blocking:


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 WinXP but it involves JavaScript? spec.

Attachments (1)

dom_isNode_patch (324 bytes) - added by anonymous 16 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 16 years ago by dylan

Milestone: 0.4

Changed 16 years ago by anonymous

Attachment: dom_isNode_patch added

comment:2 Changed 16 years ago by [email protected]

Submitted this (trivial) patch after some ad-hoc testing in Firefox, IE6 and Safari. typeof Element is either undefined or 'function' in all browsers.

comment:3 Changed 16 years ago by [email protected]

Summary: dom.isNode is defined incorrectlydom.isNode is defined incorrectly [patch]

(changed trac title)

comment:4 Changed 15 years ago by dylan

Component: CoreDOM
Owner: changed from anonymous to dylan
Status: newassigned

comment:5 Changed 15 years ago by dylan

Resolution: fixed
Status: assignedclosed

Thanks for the patch gavin, fixed in [4973]

comment:6 Changed 15 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.