Skip to main content

Bug Tracker

Side navigation

#3204 closed bug (invalid)

Opened July 31, 2008 08:19AM UTC

Closed August 03, 2008 02:58AM UTC

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)
Change History (4)

Changed August 01, 2008 02:51PM UTC by flesler comment:1

milestone: → 1.3
need: ReviewTest Case

Can you try adding a valid doctype ?

Changed August 01, 2008 07:06PM UTC by colonel comment:2




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

Changed August 01, 2008 07:16PM UTC by colonel comment:3

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!

Changed August 03, 2008 02:58AM UTC by flesler comment:4

resolution: → invalid
status: newclosed

Once you modify it, you lose the warranty :)