There was a problem that an invalid pointer error occurs.
The error occurs only in IE.
The error did not occur in the same script in Firefox and Opera either.

The problem seems to occur in the following parts when it is
[[e.className ==""]].


src/jquery/jquery.js
 has: function(e,a) {
     if ( e.className )
          e = e.className;
     return new RegExp("(^|\\s)" + a + "(\\s|$)").test(e); <-- Error
occures in this line.


I was able to correct it with the following patches.

Index: src/jquery/jquery.js
===================================================================
--- src/jquery/jquery.js        (revision 218)
+++ src/jquery/jquery.js        (working copy)
@@ -895,7 +895,7 @@
                                        new
RegExp("(^|\\s*\\b[^-])"+c+"($|\\b(?=[^-]))", "g"), "");
                },
                has: function(e,a) {
-                       if ( e.className )
+                       if ( e.className != undefined )
                                e = e.className;
                        return new RegExp("(^|\\s)" + a + "(\\s|$)").test(e);
                }


Could you confirm it?

----
Taku Sano

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to