W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

Re: [DOM4] Remove Node.isSameNode

From: Erik Arvidsson <arv@chromium.org>
Date: Fri, 16 Sep 2011 09:25:56 -0700
Message-ID: <CAJ8+GojEdNUvn=z=Fu50awwpcYbKoms-kDS5gAY-wDkzftRXUg@mail.gmail.com>
To: Anne van Kesteren <annevk@opera.com>
Cc: Webapps WG <public-webapps@w3.org>, Jonas Sicking <jonas@sicking.cc>
I'm also in favor of removing this. This does more harm than good.

Unfortunately I found ~200 uses of this in code search.

http://www.google.com/codesearch#search/&q=%5C.isSameNode%5C(%20lang:javascript&type=cs

erik








On Thu, Sep 15, 2011 at 00:33, Anne van Kesteren <annevk@opera.com> wrote:
> On Fri, 09 Sep 2011 19:21:53 +0200, Jonas Sicking <jonas@sicking.cc> wrote:
>>
>> It's a completely useless function. It just implements the equality
>> operator. I believe most languages have a equality operator already.
>> Except Brainfuck [1]. But the DOM isn't implementable in Brainfuck
>> anyway as it doesn't have objects, so I'm ok with that.
>
> If you can get this removed from Gecko without it causing compatibility
> issues consider it gone from the specification. I'm all for less methods,
> especially useless methods.
>
>
>> [1] http://en.wikipedia.org/wiki/Brainfuck
>
>
> --
> Anne van Kesteren
> http://annevankesteren.nl/
>
>
Received on Friday, 16 September 2011 16:26:51 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:47 GMT