#874 closed bug (fixed)
$(html) fails when html contains ' '
Reported by: | Arrix | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | core | Version: | 1.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
$('<p> </p>') fails (and freezes my Firefox 2.0.0.1).
This happens when the html string contains ' '.
The problems is caused by the html extraction line in function jQuery.
var m = /^[^<]*(<(.| )+>)[^>]*$/.exec(a);
which fails with ' '.
/^[^<]*(<(.|s)+>)[^>]*$/ works for me.
Note: See
TracTickets for help on using
tickets.
Fixed in revision 1242.