1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Allow the foreignObject element in SVG to embed HTML via the body element

This change means that any `<body>` elements inside an SVG region of
the DOM tree will switch the namespace back to XHTML.
This commit is contained in:
Jeremy Ruston 2013-10-28 15:05:19 +00:00
parent 1d27760a37
commit b4b0eae4e5

View File

@ -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) {