Merge pull request #334 from edwinvanrijkom/next
Adding support for custom elements that derive from a native element
This commit is contained in:
commit
515ba7cf9c
1 changed files with 1 additions and 1 deletions
|
|
@ -212,7 +212,7 @@ Mithril = m = new function app(window, undefined) {
|
||||||
else if (data.tag === "svg") namespace = "http://www.w3.org/2000/svg"
|
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"
|
else if (data.tag === "math") namespace = "http://www.w3.org/1998/Math/MathML"
|
||||||
if (isNew) {
|
if (isNew) {
|
||||||
node = namespace === undefined ? window.document.createElement(data.tag) : window.document.createElementNS(namespace, data.tag)
|
node = namespace === undefined ? window.document.createElement(data.tag, data.attrs.is) : window.document.createElementNS(namespace, data.tag, data.attrs.is)
|
||||||
cached = {
|
cached = {
|
||||||
tag: data.tag,
|
tag: data.tag,
|
||||||
//set attributes first, then create children
|
//set attributes first, then create children
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue