* Create a native element from a virtual element. * * @param {String} entityId * @param {String} path * @param {Object} vnode * * @return {HTMLDocumentFragment}
(entityId, path, vnode)
| 402 | */ |
| 403 | |
| 404 | function toNative (entityId, path, vnode) { |
| 405 | switch (nodeType(vnode)) { |
| 406 | case 'text': return toNativeText(vnode) |
| 407 | case 'empty': return toNativeEmptyElement(entityId, path) |
| 408 | case 'element': return toNativeElement(entityId, path, vnode) |
| 409 | case 'component': return toNativeComponent(entityId, path, vnode) |
| 410 | } |
| 411 | } |
| 412 | |
| 413 | /** |
| 414 | * Create a native text element from a virtual element. |
no test coverage detected