make-multiplier x y x y times-ten 10 5 pi window.addEventListener("load", function runTest() { removeWhitespaceByNamespace(document, "http://www.w3.org/1998/Math/MathML"); //evalMath(document.documentElement.firstChild, initial_environment); evalMath(document.documentElement.childNodes[1], initial_environment); evalMath(document.documentElement.childNodes[2], initial_environment); result = evalMath(document.documentElement.childNodes[3], initial_environment); alert(result); result = evalMath(document.documentElement.childNodes[4], initial_environment); alert(result); }, false);