You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I notice that HTMLElement.text returns text content of script and style tags too. Expected behavior of it is to not include those, as innerText should return only human readable content.
On the other hand textContent can return all text content, even if not human readable.
The text was updated successfully, but these errors were encountered:
I had the same issue,
If your use case make that you never need the content of script and style tag, the parser have the options to ignore those tag from the start ->
I notice that HTMLElement.text returns text content of script and style tags too. Expected behavior of it is to not include those, as
innerText
should return only human readable content.On the other hand
textContent
can return all text content, even if not human readable.The text was updated successfully, but these errors were encountered: