Whitespace text nodes following empty text nodes do not render
Reported by
greg.loc...@gmail.com,
Feb 13 2018
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Steps to reproduce the problem: 1. Add a child text node to an empty div with some arbitrary text. 2. Append a text node with the empty string as the text data to the same div. 3. Append another text node to the same div with any amount of spaces as the text data. One space is enough to repro. 4. Add a final text node with some text so it is clear whether the space is rendered or not. 5. Observe that there is no space rendered between the two text nodes in steps 1 and 4. What is the expected behavior? The empty text node div should be ignored, and the entire text should be rendered as "[Text1][space][Text2]" e.g. "1 2". Note that if you get the textContent of the container div, it shows the correct string of "1 2". Yet that space is not visible on screen. What went wrong? There is no space between the two non-empty, non-whitespace text nodes. Did this work before? N/A Does this work in other browsers? Yes Chrome version: 64.0.3282.119 Channel: stable OS Version: OS X 10.13.3 Flash Version:
,
Feb 14 2018
,
Feb 15 2018
,
Oct 23
|
||||
►
Sign in to add a comment |
||||
Comment 1 by susan.boorgula@chromium.org
, Feb 13 2018Components: Blink>HTML
Labels: Triaged-ET M-66 FoundIn-66 Target-66 Needs-Triage-M64 OS-Linux OS-Windows
Status: Untriaged (was: Unconfirmed)
19.8 KB
19.8 KB View Download