mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-24 02:27:19 +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:
parent
1d27760a37
commit
b4b0eae4e5
@ -44,7 +44,8 @@ ElementWidget.prototype.execute = function() {
|
|||||||
// Select the namespace for the tag
|
// Select the namespace for the tag
|
||||||
var tagNamespaces = {
|
var tagNamespaces = {
|
||||||
svg: "http://www.w3.org/2000/svg",
|
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];
|
this.namespace = tagNamespaces[this.parseTreeNode.tag];
|
||||||
if(this.namespace) {
|
if(this.namespace) {
|
||||||
|
Loading…
Reference in New Issue
Block a user