|
|
@@ -110,7 +110,7 @@ function normalizeEndTagsPrecedingSpace( htmlString ) {
|
|
|
function normalizeSpacerunSpans( htmlDocument ) {
|
|
|
htmlDocument.querySelectorAll( 'span[style*=spacerun]' ).forEach( el => {
|
|
|
// Use `el.childNodes[ 0 ].data.length` instead of `el.innerText.length`. For `el.innerText.length` which
|
|
|
- // contains spaces mixed with ` `, Edge browser returns incorrect length.
|
|
|
+ // contains spaces mixed with ` ` Edge browser returns incorrect length.
|
|
|
const innerTextLength = el.childNodes[ 0 ].data.length;
|
|
|
|
|
|
el.innerHTML = Array( innerTextLength + 1 ).join( '\u00A0 ' ).substr( 0, innerTextLength );
|