1
0
mirror of https://github.com/niklasvh/html2canvas.git synced 2023-08-10 21:13:10 +03:00

Don't create zero-width text node after each render

This fixes rendering the same node getting slower each time
when using Opera.
This commit is contained in:
MoyuScript 2012-10-20 22:15:58 +03:00
parent c6e16e4625
commit c6372ea0ba

@ -363,7 +363,10 @@ _html2canvas.Parse = function ( images, options ) {
continue;
}
if (i < listLen-1)
newTextNode = oldTextNode.splitText(renderList[c].length);
else
newTextNode = null;
parent = oldTextNode.parentNode;
wrapElement = doc.createElement('wrapper');