Re: [dom] Consider banning insertNode() of the Range's start node (#63)

According to the spec comments that I wrote so long ago:

```html
  <!-- Chrome 12 dev throws "HierarchyRequestError" if node is the same
  as the start node (at least for text nodes). This doesn't seem to make
  much sense, since insertBefore() works fine to move a node to its current
  position, and other browsers disagree, so the spec follows the majority.
  -->
```

I agree that throwing here is wrong, but just splitting the text node and adjusting the selection seems even worse.

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

Received on Tuesday, 11 August 2015 18:46:41 UTC