purescript-web/purescript-web-html

innerText :: HTMLElement -> Effect String missing?

swuecho opened this issue · 2 comments

garyb commented

This was omitted as it wasn't part of the HTML5 spec, as far as I know, but it seems that everything HTML5 redirects to the living standard these days.

There's textContent for Node which is a related property that might work for this use case also.

thanks. text <- textContent $ toNode element works.