mathml namespace
This commit is contained in:
parent
f9ba62cc3b
commit
0a5e7018ae
1 changed files with 1 additions and 0 deletions
|
|
@ -158,6 +158,7 @@ Mithril = m = new function app(window, undefined) {
|
|||
var node, isNew = cached.nodes.length === 0
|
||||
if (data.attrs.xmlns) namespace = data.attrs.xmlns
|
||||
else if (data.tag === "svg") namespace = "http://www.w3.org/2000/svg"
|
||||
else if (data.tag === "math") namespace = "http://www.w3.org/1998/Math/MathML"
|
||||
if (isNew) {
|
||||
node = namespace === undefined ? window.document.createElement(data.tag) : window.document.createElementNS(namespace, data.tag)
|
||||
cached = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue