-
Notifications
You must be signed in to change notification settings - Fork 24
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
innerText #43
Comments
How about Lines 346 to 359 in b8a15b3
|
Oh, thanks for the tip. I tried it but received empty string, but I think that's a bug? Am I doing something wrong here? var document = require('html-element').document;
var div = document.createElement('div')
div.innerHTML = '<p><strong>Hello</strong> world</p>'
div.textContent // => '' |
Yeah, it's an anemic innerHTML implementation: Lines 260 to 267 in b8a15b3
AFAICT right now with this lib you'd need to create the elements explicitly like with |
Hi! I have some HTML like:
And I want:
Usually I'd use innerText, but it doesn't seem to be available here. Is there another way of getting the text that a browser would render? Thanks!
The text was updated successfully, but these errors were encountered: