Fix problem with MathML input adding extra class of 'null' when no class is present on an element (result of changes to include special classes for TeX attributes)
This commit is contained in:
parent
df053847ab
commit
39b0122d08
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -65,7 +65,7 @@
|
|||
// Convert the MathML structure to the MathJax Element jax structure
|
||||
//
|
||||
MakeMML: function (node) {
|
||||
var CLASS = String(node.getAttribute("class")); // make sure class is a string
|
||||
var CLASS = String(node.getAttribute("class")||""); // make sure CLASS is a string
|
||||
var mml, type = node.nodeName.toLowerCase().replace(/^[a-z]+:/,"");
|
||||
var match = (CLASS.match(/(^| )MJX-TeXAtom-([^ ]*)/));
|
||||
if (match) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user