A DOM create and patch algorithm for vtree