X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matitaB%2Fmatita%2Fmatitaweb.js;h=c0b9458425ccde715e620507f978bb74b9de3b1b;hb=101b5d08f7013ab2dc9e4fbb06e9b18eb0e1fcf7;hp=86481a1ed15417a77dc3cdbc732cc02d17ceb7ee;hpb=f12c76e8d705aa44da328461874532e87c7fc57a;p=helm.git diff --git a/matitaB/matita/matitaweb.js b/matitaB/matita/matitaweb.js index 86481a1ed..c0b945842 100644 --- a/matitaB/matita/matitaweb.js +++ b/matitaB/matita/matitaweb.js @@ -179,7 +179,7 @@ function debug(txt) // but google chrome's innerText is, in a sense, "write only" // what should we do? // logarea.innerText = txt + "\n" + logarea.innerText; - logarea.innerHTML = txt + "\n" + logarea.innerHTML; + logarea.innerHTML = txt; // + "\n" + logarea.innerText; } function listhd(l) @@ -508,7 +508,9 @@ function gotoBottom() if (len > 0) { // len0 = unlocked.innerHTML.length; unescaped = unlocked.innerHTML.html_to_matita(); - parsedtxt = parsed.childNodes[0].nodeValue; + // not working in mozilla + // parsedtxt = parsed.childNodes[0].nodeValue; + parsedtxt = parsed.childNodes[0].wholeText; //parsedtxt = unescaped.substr(0,len); unparsedtxt = unescaped.substr(len); lockedbackup += parsedtxt; @@ -612,7 +614,7 @@ function openFile() if (is_defined(xml)) { lockedbackup = ""; locked.innerHTML = lockedbackup; - unlocked.innerHTML = xml.documentElement.textContent; + unlocked.innerHTML = xml.documentElement.wholeText; } else { debug("file open failed"); }