diff -ur jsMath-2.3b-lowercase-mozfix/jsMath-controls.html jsMath-2.3b-xhtml/jsMath-controls.html
--- jsMath-2.3b-lowercase-mozfix/jsMath-controls.html 2005-10-31 08:41:27.000000000 -0800
+++ jsMath-2.3b-xhtml/jsMath-controls.html 2005-10-31 08:41:22.000000000 -0800
@@ -76,7 +76,7 @@
Main: function () {
this.oldCookie = {}; jsMath.Add(this.oldCookie,this.cookie);
this.panel.innerHTML = ""; // for MSIE on the Mac
- this.panel.innerHTML = document.getElementById("jsMath.panel").innerHTML;
+ this.panel.appendChild(document.getElementById("jsMath.panel").cloneNode(true));
jsMath.Element("fontType").innerHTML =
({tex:"TeX",
@@ -109,7 +109,7 @@
Options: function () {
this.panel.innerHTML = ""; // for MSIE on the Mac
- this.panel.innerHTML = document.getElementById("jsMath.options").innerHTML;
+ this.panel.appendChild(document.getElementById("jsMath.options").cloneNode(true));
jsMath.Element("scale").value = this.cookie.scale;
jsMath.Element("keep").value = this.cookie.keep;
for (var id in {autofont:1, scaleImg:1, alpha:1, warn:1, button:1}) {
diff -ur jsMath-2.3b-lowercase-mozfix/jsMath.js jsMath-2.3b-xhtml/jsMath.js
--- jsMath-2.3b-lowercase-mozfix/jsMath.js 2005-10-31 08:41:28.000000000 -0800
+++ jsMath-2.3b-xhtml/jsMath.js 2005-10-31 09:03:22.000000000 -0800
@@ -289,7 +289,9 @@
*/
Script: function (file) {
if (!file.match('^([a-zA-Z]+:/)?/')) {file = jsMath.root + file}
- document.write('');
+ var loader = document.createElement("script");
+ loader.src = file;
+ document.getElementsByTagName('body')[0].appendChild(loader);
},
/*
@@ -297,7 +299,7 @@
*/
HTML: function () {
jsMath.hidden = this.TopHTML("Hidden",{'class':"normal"},{
- position:"absolute", top:0, left:0, border:0, padding:0, margin:0
+ position:"absolute", top:0, left:0, border:0, padding:0, margin:0
});
return;
},
@@ -413,9 +415,10 @@
styles = jsMath.styles;
styles['.jsM_scale'] = 'font-size:'+jsMath.Controls.cookie.scale+'%';
}
- document.writeln('');
+ var style = ''
+ jsMath.writehead(style);
},
/*
@@ -437,7 +440,7 @@
jsMath.Setup.User(); // do user-specific initialization
//make sure browser-specific loads are done before this
- document.write('');
+ jsMath.write('');
this.inited = 1;
},
@@ -996,7 +999,7 @@
if (!jsMath.Browser.msieButtonBug) {this.Button()}
else {setTimeout("jsMath.Controls.Button()",500)}
if (jsMath.Browser.safariIFRAMEbug) {
- document.write(
+ jsMath.write(
'