Bug Tracker

Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#135 closed bug (fixed)

Invalid IE Pointer

Reported by: john Owned by:
Priority: major Milestone: 1.0
Component: core Version: 1.0
Keywords: Cc:
Blocked by: Blocking:


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 ==""?.


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 @@


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?

Change History (1)

comment:1 Changed 17 years ago by john

Resolution: fixed
Status: newclosed

Fixed in SVN 224.

Note: See TracTickets for help on using tickets.