New issue
Advanced search Search tips

Issue 811630 link

Starred by 6 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Whitespace text nodes following empty text nodes do not render

Reported by greg.loc...@gmail.com, Feb 13 2018

Issue description

UserAgent: 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:
 
Chrome text node bug repro.htm
1.0 KB View Download
Cc: susan.boorgula@chromium.org
Components: Blink>HTML
Labels: Triaged-ET M-66 FoundIn-66 Target-66 Needs-Triage-M64 OS-Linux OS-Windows
Status: Untriaged (was: Unconfirmed)
greg.lockwood.is@ Thanks for the issue.

Tested this issue Windows 10, Ubuntu 14.04 and Mac OS 10.12.6 on the latest Canary 66.0.3345.0 and Stable 64.0.3282.140 and able to reproduce the issue by following the steps mentioned in the original comment.

On launching the given html page, can observe that there is no space between 1 and 2.
Attached is the screen shot for reference.

This is a Non-Regression issue as this behavior is observed from M60 Chrome builds. 
Hence marking this as Untriaged for further updates from Dev.

Thanks..
811630.PNG
19.8 KB View Download

Comment 2 by tkent@chromium.org, Feb 14 2018

Components: -Blink>HTML Blink>Layout

Comment 3 by e...@chromium.org, Feb 15 2018

Status: Available (was: Untriaged)
Labels: -Via-Wizard-API -M-66 -Triaged-ET -Needs-Triage-M64 -Target-66 Fixed-In-LayoutNG

Sign in to add a comment