Ticket #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: | ||
| Blocking: | Blocked by: |
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
Change History
comment:1 Changed 5 years ago by flesler
- need changed from Review to Test Case
- Milestone set to 1.3
Can you try adding a valid doctype ?
comment:2 Changed 5 years ago by colonel
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?
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

