Thanks Jan!!!
Yes, Im only using 'a[lang=es]', I was afraid of speed penalties or
the like, even with the $$() it works quite fast, by the way and there
are about 60-70 elements that match in the page...
Wether it works in IE or anything else its good knowing it, but in
this particular project I feel very happy that I just dont care, its a
xulrunner application... and my mind is off flying in a semi-perfect
world without having to deal with IE... ;-)
Thanks!!!!
On 9/20/08, Jan Kassens <[EMAIL PROTECTED]> wrote:
>
> yes, they will, if you really want to get them unextended you can use the
> following:
>
> var items = document.getElements('[lang=es]',
> true);
>
> items.setProperty now wont work in IE and safari 2, but you can use
>
> Elements.setProperty(items, <normal arguments here>);
>
> The speedup shouldn't be to big though. Selectors speed can be better
> improved by providing a tag, for example: "a[lang=es]" (if you can reduce it
> to one tag), since that would only test the a elements for the lang property
> instead of every element.
>
> - Jan
>
>
>
> On Sep 20, 2008, at 6:05, Iván N Paz wrote:
>
>
> > Hello guys..
> >
> > Is it possible to get a bunch of tags at once and apply a setProperty
> > without actually extending them (think speed penalty...)
> >
> > If there's any other way (even if pure javascript) I would like to know...
> >
> > Eveytime I do a $$('[lang=es]'), all those guys will be automagically
> > extended????
> >
> > Thanks!!!
> >
> > --
> > ◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦
> > www.ivanicus.com
> >
>
> --
> my blog: http://blog.kassens.net
>
>
--
◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦
www.ivanicus.com