diff --git a/vdom/create-element.js b/vdom/create-element.js index 23353cc2..75f72d85 100644 --- a/vdom/create-element.js +++ b/vdom/create-element.js @@ -26,11 +26,13 @@ function createElement(vnode, opts) { return null } + var props = vnode.properties + var type = props && props.attributes && props.attributes.is || null + var node = (vnode.namespace === null) ? - doc.createElement(vnode.tagName) : - doc.createElementNS(vnode.namespace, vnode.tagName) + doc.createElement(vnode.tagName, type) : + doc.createElementNS(vnode.namespace, vnode.tagName, type) - var props = vnode.properties applyProperties(node, props) var children = vnode.children