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

Glenn Maynard glenn at zewt.org
Mon Jul 1 06:12:15 PDT 2013

On Mon, Jul 1, 2013 at 1:56 AM, Octavian Damiean <odamiean at 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

More information about the whatwg mailing list