Is there some reason getting the inner text of a script element is not allowed? I'm working on a webscraping project where I need need to obtain a cookie by evaluating some javascript from one of the pages. I'm shelling out to Node.js to do that, but the rest of the HTML parsing and logic is all in F#. I can work around this by manually stripping the script tags myself, but it'd be much more convenient to just call HtmlNode.innerText. It looks like this restriction was introduced in commit a715fbc, but I can't see any explanation as to why.
Is there some reason getting the inner text of a script element is not allowed? I'm working on a webscraping project where I need need to obtain a cookie by evaluating some javascript from one of the pages. I'm shelling out to Node.js to do that, but the rest of the HTML parsing and logic is all in F#. I can work around this by manually stripping the script tags myself, but it'd be much more convenient to just call
HtmlNode.innerText. It looks like this restriction was introduced in commit a715fbc, but I can't see any explanation as to why.