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
Jeremy Ruston 2013-10-28 15:05:19 +00:00
rodzic 1d27760a37
commit b4b0eae4e5
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

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