Node.normalize() leaves empty textnode
Reported by
alexande...@gmail.com,
Feb 3 2017
|
|||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0 Steps to reproduce the problem: 1. Create a Node (e.g. a 'div') with more than 1 textnode of which one (the last one?) is empty 2. call node.normalize() What is the expected behavior? There should only be 1 textnode in the surrounding Node. What went wrong? There is an empty textnode in the surrounding node. Did this work before? N/A Does this work in other browsers? Yes Chrome version: 55.0.2883.87 Channel: stable OS Version: Ubuntu Flash Version: Shockwave Flash 24.0 r0 Checked that it works correctly in Firefox.
,
Feb 6 2017
,
Feb 8 2017
Routing to DOM team.
,
Feb 9 2017
Tested on ubuntu 14.04 using chrome stable M56 #56.0.2924.87 and observed as attached in screencast. Steps followed : 1. Opened the attached html file and called "node.normalize" in web console. Attached screencast for reference. @alexander.popiak--Could you please check the attached screencast and let us know if we have missed out anything in reproducing the issue .Also , please try in latest chrome stable and if you can still reproduce the issue , help us by providing the screencast. Thanks!
,
Feb 9 2017
The script included in the attached HTML already executes "node.normalize()" (so it's not strictly necessary to do it again on the console) and the issue can then be seen in the inspector as the node having more than one child text node (of which one is empty).
,
Feb 16 2017
Thank you for providing more feedback. Adding requester "hdodda@chromium.org" for another review and adding "Needs-Review" label for tracking. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Feb 17 2017
I couldn't reproduce the issue. After loading the attached chromeNormalizeBug.html, node.childNodes.length is 1 with Google Chrome 56.0.2924.87. alexander.popiak@, can you check with the latest Google Chrome?
,
Feb 17 2017
,
Feb 22 2017
I can't reproduce this with 58.0.3013.3 (Official Build) dev (64-bit) either.
,
Mar 9 2017
Update: I cannot reproduce the issue in a way that makes node.childNodes.length greater than 1, but the dev tools show empty text nodes in the div. Maybe it's a dev tools bug? See attached images for dev tools session that shows the empty nodes (even though node.childNodes.length is 0)
,
Mar 9 2017
Yeah, it sounds like a DevTools bug. I confirmed: - Loading chromeNormalizeBug.html, then opening DevTools didn't show an empty Text node. - Loading chromeNormalizeBug.html, opening DevTools, reloading chromeNormalizeBug.html, showed an empty Text node.
,
Mar 17 2017
,
Dec 20 2017
Closing as WontFix due to lack priority / resources. |
|||||||||||
►
Sign in to add a comment |
|||||||||||
Comment 1 by ajha@chromium.org
, Feb 6 2017