Bug Tracker

Modify

Ticket #1898 (closed bug: duplicate)

Opened 6 years ago

Last modified 6 years ago

$("div", some_html_string) where string has EOL

Reported by: apfelstrudel Owned by:
Priority: major Milestone: 1.2.2
Component: core Version: 1.2.1
Keywords: DOM Cc:
Blocking: Blocked by:

Description

I recently found a bug that is present in jQuery 1.1.4, 1.2.1 and today's nightly build. In essence, doing this:

$("div", some_html_string)

Can fail in some cases where a '\n' was inserted in the string. You can find a test case exercising the bug here [ http://www.ivy.fr/ notes/jquery-html-string-bug.html].

The original thread:  http://groups.google.com/group/jquery-dev/browse_thread/thread/fa087c5e9e5d44d?hl=en

Change History

comment:1 Changed 6 years ago by brandon

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

Duplicate of #1888

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.