Re: [dom] Fix the adoption step when replacing node by child into parent (#121)

Step 3 is for a case like `parent.insertBefore(a, a)`, by turning it into `parent.insertBefore(a.nextSibling, a)`, but that wouldn't change the DOM.

What I'm looking for is the design principle that is upheld in **pre-insert** but not in **replace**. Should these APIs be no-ops when possible, or should they always remove and reinsert once?

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/121#issuecomment-160111409

Received on Friday, 27 November 2015 10:48:20 UTC