Chrome v70+ has issue with innerText in td cells Chrome v70+ has issue with innerText in td cells google-chrome google-chrome

Chrome v70+ has issue with innerText in td cells


I have the exact same problem. The workaround I'm using for now is changing my code to cell.innerText.trim().


It appears that the Chrome team "fixed a glitch" that hadn't been working correctly, according to the standard (based on the link below). This caught me off-guard with an inherited application, as well.

innerText functionality


I am doing some simple text comparison, so I switched to .innerHTML because it seems to not have the same tab/LF append requirements that .innerText has.

In my case, the cells don't have any HTML in them. I thought that .innerText was more clear that I only wanted the text. But, I guess, if you are converting table cells to text you would want to have those separator characters.