Issue metadata
Sign in to add a comment
|
text nodes with spaces only are hidden
Reported by
froz...@gmail.com,
May 4 2018
|
||||||||||||||||||||||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36
Steps to reproduce the problem:
1. html: <p>some text</p>
2. js:
var pNode = document.querySelector('p');
var text = pNode.childNodes[0];
text.splitText(5);
text.splitText(4);
console.log('child count', pNode.childNodes.length);
3. open devtools
4. check html tree
What is the expected behavior?
3 node appear
( 2 nodes with text and 1 node with spaces )
What went wrong?
only 2 nodes appear
Did this work before? N/A
Chrome version: 66.0.3359.139 Channel: stable
OS Version: 10.0
Flash Version:
bug - https://jsfiddle.net/n5km2a28/1/
but after normalize call you can check space
https://jsfiddle.net/n5km2a28/4/
,
May 6 2018
,
May 7 2018
This issue is seen from M-60 and looks similar to issue 823106, hence merging into it. Please feel free to undupe if this is not same. Thanks! |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by woxxom@gmail.com
, May 4 2018