Merge pull request #2305 from brendandahl/remove-innerhtml

Remove use of innerhtml.
This commit is contained in:
Yury Delendik 2012-10-24 12:46:12 -07:00
commit 7e2c94453c

View File

@ -2551,7 +2551,7 @@ var TextLayerBuilder = function textLayerBuilder(textLayerDiv, pageIdx) {
function beginText(begin, className) {
var divIdx = begin.divIdx;
var div = textDivs[divIdx];
div.innerHTML = '';
div.textContent = '';
var content = bidiTexts[divIdx].str.substring(0, begin.offset);
var node = document.createTextNode(content);