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
html2dom emits code for text nodes that might contain redundant whitespaces, e.g.
vartext=document.createTextNode(" \n TITLE ");
The problem here is that we do not know the real context. In most cases, we can just replace multiple whitespaces with a single space. But if the node's parent (or any other direct ancestor) is a <pre> tag or a tag with a css white-space attribute that is set to either pre, pre-wrap or pre-line, then we are doing it wrong.
The text was updated successfully, but these errors were encountered:
html2dom emits code for text nodes that might contain redundant whitespaces, e.g.
The problem here is that we do not know the real context. In most cases, we can just replace multiple whitespaces with a single space. But if the node's parent (or any other direct ancestor) is a
<pre>
tag or a tag with a csswhite-space
attribute that is set to eitherpre
,pre-wrap
orpre-line
, then we are doing it wrong.The text was updated successfully, but these errors were encountered: