W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2013

Re: [whatwg] Proposal: Adding methods like getElementById and getElementsByTagName to DocumentFragments

From: Glenn Maynard <glenn@zewt.org>
Date: Mon, 1 Jul 2013 08:12:15 -0500
Message-ID: <CABirCh_8LW_h=nwBZ=G+eW-uLREjLPjFqK1Cw+Dh3X3O_FrVig@mail.gmail.com>
To: Octavian Damiean <odamiean@linux.com>
Cc: whatwg <whatwg@lists.whatwg.org>, Jussi Kalliokoski <jussi.kalliokoski@gmail.com>, Boris Zbarsky <bzbarsky@mit.edu>
On Mon, Jul 1, 2013 at 1:56 AM, Octavian Damiean <odamiean@linux.com>wrote:

> ​I completely agree with ​Jussi here. It's also not really constructive to
> argue whether querySelector is more powerful not, we're talking about
> consistency.

It's a little inconsistent to agree with something other than consistency,
then telling people not to argue about anything but consistency.  :)

"Consistency" isn't a magic word that justifies things by itself.  When it
comes to backwards-compatibility with obsolete APIs, consistency often just
means bloat.

(I've used querySelector exclusively for quite some time, and I find
arguments that querySelector isn't readable or "the wrong tool" to simply
not hold up.  I find it more readable, actually, since I don't have to
change interfaces depending on whether I'm searching for an ID or a class.)

Glenn Maynard
Received on Monday, 1 July 2013 13:12:44 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:03 UTC