Re: [dom] rename before() and after() of ChildNode (#134)

That would be confusing with `insertBefore`, at a glance, what's the
difference between `insertBefore` and `putBefore`? Perhaps
`insertBeforeSibling` or something of that sort?

On Mon, Dec 21, 2015 at 8:06 PM Wes <notifications@github.com> wrote:

> The problem is that next, previous, before and after aren't verbs.
>
> These names historically return booleans. I read
> sibling.after(otherSibling) as sibling.isAfter(otherSibling)
>
> Would it be too bad to have putBefore, putAfter instead? They are nearly
> as short and they make more sense.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/whatwg/dom/issues/134#issuecomment-166376842>.
>


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

Received on Monday, 21 December 2015 20:06:10 UTC