W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2012

Re: DOM 4 naming "before" and "after"

From: Ojan Vafai <ojan@chromium.org>
Date: Wed, 22 Aug 2012 12:13:16 -0700
Message-ID: <CANMdWTuMQk67Hh8UAuUz+yVSTnOey928_zbZmJqRtj7kbjOKSQ@mail.gmail.com>
To: Joćo Eiras <joaoe@opera.com>
Cc: "www-dom@w3.org" <www-dom@w3.org>
These names came from jQuery. In my experience, you get accustomed to them
immediately and it's not confusing in practice. Given all that, is there
much benefit in going with the longer, bulkier names?

On Wed, Aug 22, 2012 at 7:41 AM, Joćo Eiras <joaoe@opera.com> wrote:

> Hi !
>
> The spec [1] defines the new methods "after" and "before". Unlike
> "prepend", "append", "replace" or "remove", "after" and "before" are not
> verbs, which makes them a bit less comprehensible.
>
> Could you rename them to addAfter/addBefore or something equivalent ?
>
> Thank you.
>
> [1] http://dvcs.w3.org/hg/domcore/**raw-file/tip/Overview.html#**
> mutation-methods<http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#mutation-methods>
>
>
Received on Wednesday, 22 August 2012 19:14:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 22 August 2012 19:14:12 GMT