Skip to main content

Bug Tracker

Side navigation

#135 closed bug (fixed)

Opened August 23, 2006 04:55AM UTC

Closed August 24, 2006 07:47PM UTC

Last modified June 20, 2007 01:55AM UTC

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?

Attachments (0)
Change History (1)

Changed August 24, 2006 07:47PM UTC by john comment:1

resolution: → fixed
status: newclosed

Fixed in SVN 224.