- From: Doron Rosenberg <doronr@gmail.com>
- Date: Sat, 28 Aug 2004 20:23:38 -0500
People keep asking about getElementsBy{Something}, so having a getElementsByAttribute (I believe Mozilla's XBL impl has a similar beast) would cover all those requests. On Thu, 26 Aug 2004 17:13:20 +0000 (UTC), Ian Hickson <ian at hixie.ch> wrote: > On Sat, 21 Aug 2004, Doron Rosenberg wrote: > > > > Wouldn't a getElementsByAttribute be a more flexiable solution? > > It depends, what exactly did you have in mind? > > Note that the "." selector in CSS can't be directly emulated even with a > single "[ =~ ]" selector. > > I think for most uses, DOM Traversal is the way to go here. > getElementsByClass is IMHO an exception, in that implementing it as a node > filter is non-trivial. > > > > -- > Ian Hickson U+1047E )\._.,--....,'``. fL > http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. > Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' >
Received on Saturday, 28 August 2004 18:23:38 UTC