Bug Tracker

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#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:


$('<p> </p>') fails (and freezes my Firefox

This happens when the html string contains ' '.

The problems is caused by the html extraction line in function jQuery.

var m = /^[^<]*(<(.|

which fails with ' '.

/^[^<]*(<(.|s)+>)[^>]*$/ works for me.

Change History (1)

comment:1 Changed 16 years ago by joern

Resolution: fixed
Status: newclosed

Fixed in revision 1242.

Note: See TracTickets for help on using tickets.