Hi,
Ultimately my application is pattern matching based on a text selection within a web browser, generating regEx code so that a portion of a page can be revisited and read anagrammatically.
I'm currently pulling a portion of the text by walking up the dom and then returning innerHtml.
The issue that I have is the text value of the innerHtml property is not consistent, and not properly representative of the literal text.
Tags are capitalised, quotes removed etc, and it varies between browsers.
Is there a way to deal with this client side. I can already read in the literal page text using HttpRequest, but matching using the whole page may be less accurate.
Is this a common issue in JavaScript and is there a way around it?