Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove restrictions for getting innerText #1435

Merged

Conversation

LiteracyFanatic
Copy link
Contributor

This pull request addresses #1292. It seems like the current version of innerTextExcluding' was tightly coupled to some of the implementation details of the Html type provider. In order to avoid breaking the Validate signature didn't change tests, I moved the existing logic to private functions inside HtmlRuntime.fs. Then I added a new simpler implementation to HtmlOperations.fs which doesn't modify the exclusion list or filter on the aria-hidden attribute.

Allow getting innerText for styles, scripts, and elements that are
aria-hidden
@dsyme
Copy link
Contributor

dsyme commented Apr 4, 2022

Fabulous!

@dsyme dsyme merged commit 46bcf84 into fsprojects:main Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants