Oh it’s an morphdom issue morphdom vs. named fields
morphdom vs. named fields
<input name="id">
results in the surrounding form being duplicated rather than replaced.
This is because if such a field exists within a form,form.id
returns that DOM node rather than the form’sid
attribute value.
getNodeKey (
Function(node)
) - Called to get theNode
’s unique identifier. This is used bymorphdom
to rearrange elements rather than creating and destroying an element that already exists. This defaults to using theNode
’sid
property. (Note that form fields must not have aname
corresponding to forms’ DOM properties, e.g.id
.)