Modify ↓
Ticket #12180 (closed bug: invalid)
loose markup parsing incorrect
| Reported by: | fredyang@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | None |
| Component: | core | Version: | 1.7.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
it is documented in unit test using qunit
Change History
comment:2 Changed 9 months ago by sindresorhus
- Priority changed from undecided to low
- Resolution set to invalid
- Status changed from new to closed
- Component changed from unfiled to core
Works as intended. See docs:
When passing HTML to jQuery(), please also note that text nodes are not treated as DOM elements. With the exception of a few methods (such as .content()), they are generally otherwise ignored or removed. E.g:
var el = $('1<br/>2<br/>3'); returns [<br>, "2", <br>] el = $('1<br/>2<br/>3 >'); returns [<br>, "2", <br>, "3 >"]
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.

the url should be http://jsfiddle.net/jgSrn/1/