From b4b0eae4e5ab17ce4b0617c845a60507a061a91b Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Mon, 28 Oct 2013 15:05:19 +0000 Subject: [PATCH] Allow the foreignObject element in SVG to embed HTML via the body element This change means that any `` elements inside an SVG region of the DOM tree will switch the namespace back to XHTML. --- core/modules/new_widgets/element.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/modules/new_widgets/element.js b/core/modules/new_widgets/element.js index 2a65789cd..a87ad922d 100755 --- a/core/modules/new_widgets/element.js +++ b/core/modules/new_widgets/element.js @@ -44,7 +44,8 @@ ElementWidget.prototype.execute = function() { // Select the namespace for the tag var tagNamespaces = { svg: "http://www.w3.org/2000/svg", - math: "http://www.w3.org/1998/Math/MathML" + math: "http://www.w3.org/1998/Math/MathML", + body: "http://www.w3.org/1999/xhtml" }; this.namespace = tagNamespaces[this.parseTreeNode.tag]; if(this.namespace) {