Re: [whatwg/dom] Suggestion: `Node.insertAfter(newNode, referenceNode)` (#986)

@isiahmeadows so ... [considering this previous scenario](https://github.com/whatwg/dom/issues/986#issuecomment-860459976):

### list.insertAfter(task, null)

would produce:
```html
<ul id="list">
  <li>last task</li>
  <li>first task</li>
  <!-- some comment -->
</ul>
```

I understand the specular API idea behind, but I find it a bit counter-intuitive ... anyway, not opposing, or anything, just wantet to understand the rationale or use case. I don't use vDOM, but I do use DOM diffing, so these methods might be handy for my use cases too.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/986#issuecomment-860466201

Received on Monday, 14 June 2021 07:50:14 UTC