Ticket #257 (new defect)

Opened 1 year ago

Last modified 1 week ago

Minor Annoyance: Warning: reference to undefined property o.nodeType With Patch

Reported by: SantosJ <dragonwing@dragonu.net> Assigned to: somebody
Priority: normal Milestone:
Component: component1 Version: 1.0
Severity: normal Keywords:
Cc:

Description

This gets rid of all of the warnings when not working with DOM objects. Since it appears a lot in the web page, I needed it to check other scripts.

Index: Base.js
===================================================================
--- Base.js	(revision 1308)
+++ Base.js	(working copy)
@@ -386,7 +386,7 @@
                 (typ != 'object' && !(typ == 'function' && typeof(o.item) == 'function')) ||
                 o === null ||
                 typeof(o.length) != 'number' ||
-                o.nodeType === 3
+                (typeof(o.nodeType) != 'undefined' && o.nodeType === 3)
             ) {
                 return false;
             }

Change History

07/30/07 13:09:47 changed by therve@gmail.com

  • milestone deleted.

10/04/08 05:17:58 changed by cederberg@gmail.com

Which web browser are you using? I've tried to reproduce these warnings in FF, Safari and IE 6 without success.