- From: Claudia Meadows <notifications@github.com>
- Date: Mon, 14 Jun 2021 00:31:05 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 14 June 2021 07:31:30 UTC
> > 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 proposed behavior here 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_ ? @WebReflection Sorry, got my directions switched up. `elem.insertBefore(node, null)` prepends, and I meant for `elem.insertAfter(node, null)` to append. -- 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-860453991
Received on Monday, 14 June 2021 07:31:30 UTC