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.
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 theValidate signature didn't change
tests, I moved the existing logic to private functions insideHtmlRuntime.fs
. Then I added a new simpler implementation toHtmlOperations.fs
which doesn't modify the exclusion list or filter on thearia-hidden
attribute.