Re: [dom] Rewrite replaceWith/before/after algorithms (#32)

I think for `replaceWith()` the new set of steps would be:

1. Let parent be context object's parent.
1. If parent is null, terminate these steps.
1. Let viableNextSibling be the first following sibling not in nodes, and null otherwise.
1. Let node be the result of converting nodes into a node.
1. Pre-insert node into parent before viableNextSibling.

And something similar for `before()`/`after()`. Can someone sanity check that?

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/32#issuecomment-111518557

Received on Friday, 12 June 2015 14:58:08 UTC