Bug Tracker

Modify

Ticket #6146 (closed bug: duplicate)

Opened 3 years ago

Last modified 3 years ago

.text() strips newlines in Internet Explorer

Reported by: vdboor Owned by:
Priority: Milestone: 1.4.2
Component: attributes Version: 1.4.1
Keywords: text Cc:
Blocking: Blocked by:

Description

jQuery's .text() function strips newlines in Internet Explorer 6-8. The innerText property does return the proper value. This does not happen in Firefox.

Example HTML code:

<h2>
  14.02.2010<br/>
  test 9
</h2>

Change History

comment:1 Changed 3 years ago by dmethvin

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

Duplicate of #3144.

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.