What is the issue with the DOM Standard?
Step 9: For each node of nodesToRemove, in tree order: remove node.
may modify DOM
and then step 11 does just Set start and end to (newNode, newOffset).
and those newNode and newOffset were calculated before removal.