« Return to Thread: domNode.asText() and tags removed question

Re: domNode.asText() and tags removed question

by Marc Guillemot :: Rate this Message:

| View in Thread

Hi Alession,

I don't know the precise origin of asText() but I think too that it should be improved. In particular current implementation generates an inconsistency when used with xpath: with text(somenode), the spaces are fixed where as with somenode/text() they aren't.

I think that we should try enhance asText() to better reflect what is visible on screen. For exanple could \n be added around the content of a <p> or <tr>, ...

Marc.

 « Return to Thread: domNode.asText() and tags removed question