Setting Text.nodeValue - carriage return renders as whitespace in a block
Reported by
scottdav...@gmail.com,
Jul 27 2017
|
|||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 Steps to reproduce the problem: 1. Create a block element, with a text node inside it 2. Set the text node's nodeValue to start with a carriage return character (\r), charCode 13. ie: textNode.nodeValue = "\r\nText"; 3. The \r does not collapse in the block and renders as a space character. Here is a codepen example: https://codepen.io/anon/pen/wqKWeb What is the expected behavior? The \r should not render. What went wrong? The \r renders as a space. Did this work before? N/A Does this work in other browsers? Yes Chrome version: 59.0.3071.115 Channel: n/a OS Version: 10.0 Flash Version:
,
Jul 31 2017
Able to reproduce the issue on the latest canary(62.0.3172.0) and the latest stable(59.0.3071.115) of Windows-10, Mac OS 10.12.5 and Linux Ubuntu 14.04. This is non-regression issue as similar behavior is seen on older chrome version: 50.0.2646.0. Chrome versions prior to that(48.0.2527.0 & 45.0.2454.101) doesn't show toggle behavior with the codepen example.
,
Aug 1 2017
,
Aug 1 2017
xiaochengh: Would you mind taking a look at this? I know you've spend some time in the relevant code lately.
,
Feb 18 2018
Not going to fix it soon... |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by nyerramilli@chromium.org
, Jul 28 2017