Modify ↓
Ticket #874 (closed bug: fixed)
$(html) fails when html contains ' '
| Reported by: | Arrix | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | core | Version: | 1.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
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.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Fixed in revision 1242.