Bug Tracker

Ticket #11262 (closed bug: duplicate)

Opened 3 years ago

Last modified 3 years ago

Linebreaks are removed after .text() usage.

Reported by: Somebi Owned by:
Priority: low Milestone: None
Component: misc Version: 1.7.1
Keywords: Cc:
Blocking: Blocked by:

Description

Some strange behavior of .text() method. Linebreaks are removed in IE7/8 and after using .innerText text assigning in Google Chrome linebreaks are removed as well.

 http://jsfiddle.net/XtPpX/6/

Change History

comment:1 Changed 3 years ago by sindresorhus

  • Priority changed from undecided to low
  • Resolution set to duplicate
  • Status changed from new to closed
  • Component changed from unfiled to misc

comment:2 Changed 3 years ago by sindresorhus

Duplicate of #11153.

Note: See TracTickets for help on using tickets.