Bug Tracker

Modify

Ticket #12180 (closed bug: invalid)

Opened 10 months ago

Last modified 9 months ago

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

 http://jsfiddle.net/jgSrn/

Change History

comment:1 Changed 10 months ago by fredyang@…

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

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 &gt;"]

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.