mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2025-12-27 04:11:55 -08: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue