As per discussion on irc, this would make sure that the proxy element is of the same node type that the rendered element. This would make it possible to morph a component onto itself, something that nanomorph won't allow if root node names differ. The motivation for this change is an experimental implementation of top level components in choo (see: https://github.com/yoshuawuyts/choo-component-preview)
var element = component.render()
morph(element, component.render())
As per discussion on irc, this would make sure that the proxy element is of the same node type that the rendered element. This would make it possible to morph a component onto itself, something that nanomorph won't allow if root node names differ. The motivation for this change is an experimental implementation of top level components in choo (see: https://github.com/yoshuawuyts/choo-component-preview)