]> matita.cs.unibo.it Git - helm.git/blobdiff - matitaB/matita/matitaweb.js
Matitaweb: changes to file selection dialog box.
[helm.git] / matitaB / matita / matitaweb.js
index 86481a1ed15417a77dc3cdbc732cc02d17ceb7ee..c0b9458425ccde715e620507f978bb74b9de3b1b 100644 (file)
@@ -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");
                }