Skip to main content

Bug Tracker

Side navigation

#6146 closed bug (duplicate)

Opened February 22, 2010 10:09AM UTC

Closed June 18, 2010 02:33AM UTC

.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:
Blocked by: Blocking:
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>
Attachments (0)
Change History (1)

Changed June 18, 2010 02:33AM UTC by dmethvin comment:1

resolution: → duplicate
status: newclosed

Duplicate of #3144.