Bug Tracker

Opened 13 years ago

Closed 13 years ago

Last modified 12 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:

Description

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?

Change History (1)

comment:1 Changed 13 years ago by john

Resolution: fixed
Status: newclosed

Fixed in SVN 224.

Note: See TracTickets for help on using tickets.