Bug Tracker

Modify

Ticket #874 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

$(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

comment:1 Changed 6 years ago by joern

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in revision 1242.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.