Skip to content

Can't get inner text of a script #1292

@LiteracyFanatic

Description

@LiteracyFanatic

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions