/* * /MathJax/extensions/MathML/mml3.js * * Copyright (c) 2009-2015 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ MathJax.Extension["MathML/mml3"]={version:"2.5.1"};MathJax.Hub.Register.StartupHook("MathML Jax Ready",function(){var c=MathJax.InputJax.MathML,e=c.Parse.prototype;c.prefilterHooks.Add(function(h){if(!c.mml3XSLT){return}if(!c.ParseXML){c.ParseXML=c.createParser()}var i=c.ParseXML(e.preProcessMath(h.math));var g=c.mml3XSLT.transformToDocument(i);if((typeof g)==="string"){h.math=g}else{if(window.XMLSerializer){var f=new XMLSerializer();h.math=f.serializeToString(g.documentElement,i)}}});var d=' this[\'node-set\'] = function (x) { return x; })(][}{)(][}{\)(}{><top right 0decimalpoint decimalpoint.decimalpoint*0.1em0.15em0.2em0.15em0)(/\\:=top)';var b;if(window.XSLTProcessor){if(!c.ParseXML){c.ParseXML=c.createParser()}c.mml3XSLT=new XSLTProcessor();c.mml3XSLT.importStylesheet(c.ParseXML(d))}else{if(MathJax.Hub.Browser.isMSIE){if(MathJax.Hub.Browser.versionAtLeast("9.0")||(document.documentMode||0)>=9){b=new ActiveXObject("Msxml2.FreeThreadedDOMDocument");b.loadXML(d);var a=new ActiveXObject("Msxml2.XSLTemplate");a.stylesheet=b;c.mml3XSLT={mml3:a.createProcessor(),transformToDocument:function(f){this.mml3.input=f;this.mml3.transform();return this.mml3.output}}}else{b=c.createMSParser();b.async=false;b.loadXML(d);c.mml3XSLT={mml3:b,transformToDocument:function(f){return f.documentElement.transformNode(this.mml3)}}}}else{c.mml3XSLT=null}}MathJax.Hub.Startup.signal.Post("MathML mml3.js Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/MathML/mml3.js");