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: |
Description
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 (5)
Changed 14 years ago by
Attachment: | jquery-window-unload-regexp.zip added |
---|
comment:1 Changed 14 years ago by
Milestone: | → 1.3 |
---|---|
need: | Review → Test Case |
comment:2 Changed 14 years ago by
added
<!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
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
Resolution: | → invalid |
---|---|
Status: | new → closed |
Once you modify it, you lose the warranty :)
Can you try adding a valid doctype ?