From 83f85cad7d1b7303e1b73f0a94679a79b8d549b0 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sat, 31 Aug 2013 11:15:50 +0100 Subject: [PATCH] Add support for MathML namespace It doesn't actually work, though, which is weird, since SVG works just fine using the same mechanism --- core/modules/rendertree/renderers/element.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/modules/rendertree/renderers/element.js b/core/modules/rendertree/renderers/element.js index 9802d7c09..722e24db8 100644 --- a/core/modules/rendertree/renderers/element.js +++ b/core/modules/rendertree/renderers/element.js @@ -51,7 +51,8 @@ var ElementRenderer = function(renderTree,parentRenderer,parseTreeNode) { } // Select the namespace for the tag var tagNameSpaces = { - svg: "http://www.w3.org/2000/svg" + svg: "http://www.w3.org/2000/svg", + math: "http://www.w3.org/1998/Math/MathML" }; this.namespace = tagNameSpaces[this.parseTreeNode.tag]; if(this.namespace) {