@@ -1,4 +1,4 @@
1−/*
1+/*
22March 19, 2004 MathHTML (c) Peter Jipsen http://www.chapman.edu/~jipsen
33Released under the GNU General Public License version 2 or later.
44See the GNU General Public License (at http://www.gnu.org/copyleft/gpl.html)
@@ -7,15 +7,15 @@ for more details.
77
88function convertMath(node) {// for Gecko
99 if (node.nodeType==1) {
10− var newnode =
10+ var newnode =
1111 document.createElementNS("http://www.w3.org/1998/Math/MathML",
1212 node.nodeName.toLowerCase());
1313 for(var i=0; i < node.attributes.length; i++)
1414 newnode.setAttribute(node.attributes[i].nodeName,
15− node.attributes[i].nodeValue);
15+ node.attributes[i].value);
1616 for (var i=0; i<node.childNodes.length; i++) {
1717 var st = node.childNodes[i].nodeValue;
18− if (st==null || st.slice(0,1)!=" " && st.slice(0,1)!="\n")
18+ if (st==null || st.slice(0,1)!=" " && st.slice(0,1)!="\n")
1919 newnode.appendChild(convertMath(node.childNodes[i]));
2020 }
2121 return newnode;
@@ -37,14 +37,14 @@ function convert() {
3737 if (st=="#text") str += node.nodeValue;
3838 else {
3939 str += (st.slice(0,1)=="/" ? "</m:"+st.slice(1) : "<m:"+st);
40− if (st.slice(0,1)!="/")
40+ if (st.slice(0,1)!="/")
4141 for(var j=0; j < node.attributes.length; j++)
42− if (node.attributes[j].nodeValue!="italic" &&
43− node.attributes[j].nodeValue!="" &&
44− node.attributes[j].nodeValue!="inherit" &&
45− node.attributes[j].nodeValue!=undefined)
42+ if (node.attributes[j].value!="italic" &&
43+ node.attributes[j].value!="" &&
44+ node.attributes[j].value!="inherit" &&
45+ node.attributes[j].value!=undefined)
4646 str += " "+node.attributes[j].nodeName+"="+
47− "\""+node.attributes[j].nodeValue+"\"";
47+ "\""+node.attributes[j].value+"\"";
4848 str += ">";
4949 }
5050 node = node.nextSibling;