Closed wjchristenson2 closed 9 years ago
This was actually a deliberate change, see change log here (near the bottom of "1.4 (prerelease)")
https://github.com/jamietre/CsQuery/tree/master/source
InnerText
isn't actually a real W3C property but I thought it was useful because of the way it handles whitespace. The lack of returning child nodes was always a bug. If you want the value of just a single text node then the right way is to access the NodeValue
property of the text node.
Thanks for the clarification. I will mark as closed.
The following occurs w/ CsQuery 1.3.5-beta5 (Prerelease).
This did not occur in earlier versions of CsQuery. A node's InnerText property is now returning the InnerText for child nodes as well. See below.
li.InnerText is returning "Stock #:2575" instead of "2575".
CsQuery:
Dom:
Is this the new intended behavior? .innerText - .textContent has always been a debacle between browser support/etc. If so, can we get what "text-based" tags have their values used when creating the .InnerText string?