kopia lustrzana https://github.com/miklobit/TiddlyWiki5
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.print-window-tiddler
rodzic
1d27760a37
commit
b4b0eae4e5
|
@ -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) {
|
||||
|
|
Ładowanie…
Reference in New Issue