Fixed <div> bug

When typing a browser wraps a div around the node element. We can't
prevent this, so we fix this at the end on the submit event.