I ran into an issue with table head cells that wrapped the text content in some div elements.
Retrieving the text of a cell via getNodeText only works if the text is a direct child of the cell node. Retrieving the text using textContent also returns text wrapped in child elements.
At first sight I don't see any significant downsides to using textContent directly and it would solve the issue with wrapped text which probably isn't too unusual.
Hi,
thanks for providing this library!
I ran into an issue with table head cells that wrapped the text content in some
div
elements.Retrieving the text of a cell via
getNodeText
only works if the text is a direct child of the cell node. Retrieving the text usingtextContent
also returns text wrapped in child elements.At first sight I don't see any significant downsides to using
textContent
directly and it would solve the issue with wrapped text which probably isn't too unusual.