Bug Tracker

Opened 14 years ago

Closed 14 years ago

#3204 closed bug (invalid)

window.onunload event handler broken by jQuery("*") expression

Reported by: colonel Owned by:
Priority: major Milestone: 1.3
Component: core Version: 1.2.6
Keywords: Cc:
Blocked by: Blocking:


seems like, at least for me, jquery can't parse a "*" selector expression properly.

the attached html is an html file with nothing but the jquery script include inside. on firefox 3 and IE7 it produces a nullpointer issue with var "m" which should be the matched quickClass regexp.

it works with 1.2.5, but fails in 1.2.6 -- and the only change that might cause this is the quickClass regexp change:

1.2.5: quickClass = new RegExp("(#.?)(" + chars + "*)"); 1.2.6: quickClass = new RegExp("(<#.>?)(" + chars + "*)");

Attachments (1)

jquery-window-unload-regexp.zip (59.6 KB) - added by colonel 14 years ago.

Download all attachments as: .zip

Change History (5)

Changed 14 years ago by colonel

comment:1 Changed 14 years ago by flesler

Milestone: 1.3
need: ReviewTest Case

Can you try adding a valid doctype ?

comment:2 Changed 14 years ago by colonel


<!DOCTYPE HTML PUBLIC "-W3CDTD HTML 4.01 TransitionalEN" "http://www.w3.org/TR/html4/loose.dtd">

still the same error -- you can't reproduce it on your machine, can you?

comment:3 Changed 14 years ago by colonel

Oh crap, that's my mistake. Seems like a global regex search n replace had messed up the jquery file (the quickClass regex!) I was using *doh*

sorry for bothering you, this ticket can be closed!

comment:4 Changed 14 years ago by flesler

Resolution: invalid
Status: newclosed

Once you modify it, you lose the warranty :)

Note: See TracTickets for help on using tickets.