PRE innerText does not preserve trailing \r\n

Confirmed Issue #8337779 • Assigned to Arthur B.


David R.
Jul 31, 2016
This issue is public.
Found in
  • Microsoft Edge
  • Internet Explorer
Found in build #
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

<!DOCTYPE html>
<pre id=REP >
var rep = document.getElementById(‘REP’);
rep.innerText = rep.innerText + ‘Line2’ + '\r\n’;
rep.innerText = rep.innerText + ‘Line3’ + '\r\n’;


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Ibrahim O.”

      Changed Status to “Confirmed”

      Changed Assigned To from “Ibrahim O.” to “James M.”

      Changed Assigned To from “James M.” to “Travis L.”

    • Hello,

      Thank you for providing this information about the issue. We have confirmed the problem, and we are working on a solution for a future build of Edge. We will update this case ticket once we have released the solution.

      Best Wishes,
      The MS Edge Team

    • Microsoft Edge Team

      Changed Assigned To from “Travis L.” to “Arthur B.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in