Modify ↓
Ticket #1898 (closed bug: duplicate)
$("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
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.

Duplicate of #1888