Internet Explorer: Error Message: 'nodeType' is null or not an object

Posted by Patrick on Stack Overflow See other posts from Stack Overflow or by Patrick
Published on 2010-05-02T13:49:07Z Indexed on 2010/05/02 13:57 UTC
Read the original article Hit count: 603

hi,

I get the following error in IE

Line: 173
Character: 5
Code: 0
Error Message: 'nodeType' is null or not an object

This is the line of code where it crashes:

if($clone.attr("nodeType") == 1 && !$clone.hasClass("dontend")){

website: http://www.donatellabernardi.ch/drupal/

I've debugged the attribute nodeType in Firebug and the output is always "1".

thanks

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about internet-explorer