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

> If child is null, this prepends node as the first child.

with `insertBefore`, if `child` is `null` the element is appended (like `appendChild` would do) ... I find this behavior a bit controversial ... the *before* "*appends* with null, the *after* "*prepend*" with null as first child ... am I the only one not fully getting the use case for prepending as first child with a method called *after* ?

-- 
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-860452452

Received on Monday, 14 June 2021 07:29:08 UTC