Skip to content

Remove restrictions for getting innerText#1435

Merged
dsyme merged 1 commit intofsprojects:mainfrom
LiteracyFanatic:remove-inner-text-limitations
Jun 2, 2022
Merged

Remove restrictions for getting innerText#1435
dsyme merged 1 commit intofsprojects:mainfrom
LiteracyFanatic:remove-inner-text-limitations

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