On 12/8/2011 11:08 PM, Bill Keese wrote:It's a good question. Specifically about which selectors each engine
supports. I didn't find any good documentation, but the data seems
to be out there in bits and pieces.
1) Acme
The selectors are listed in
http://bugs.dojotoolkit.org/browser/dojo/dojo/trunk/selector/acme.js#L1308,although that doesn't show up well on our API site, perhaps because of
the naming conflict with the new dojo/query module.
Also on
http://livedocs.dojotoolkit.org/dojo/query although perhaps
that's not a comprehensive list.
2) Lite
There's a hint in
http://permalink.gmane.org/gmane.comp.web.dojo.devel/14245, which says:
it
is only supposed to do a simple CSS2 queries (#id, .class, tag and some
[attributes]), roughly the same capability as Dustin Diaz's Qwery
(https://github.com/ded/qwery))
And then from lite.js:
"^=": function(attrValue, value){
return attrValue.indexOf(value) == 0;
},
"*=": function(attrValue, value){
return attrValue.indexOf(value) > -1;
},
"$=": function(attrValue, value){
return attrValue.substring(attrValue.length - value.length,
attrValue.length) == value;
},
"~=": function(attrValue, value){
return (' ' + attrValue + ' ').indexOf(' ' + value + ' ') > -1;
},
"|=": function(attrValue, value){
return (attrValue + '-').indexOf(value + '-') == 0;
},
"=": function(attrValue, value){
return attrValue == value;
},
"": function(attrValue, value){
return true;
}
A thread about the engines is in
http://thread.gmane.org/gmane.comp.web.dojo.devel/14203.3) sizzle
I remember lots of performance charts for the various selectors back
in the days of the acme/sizzle wars, but probably we don't need to
document sizzle much anyway. Actually, looks like it's not even in
our source tree anymore.
On Wed, Dec 7, 2011 at 2:17 AM, Chris Mitchell
<ccmitchellusa at gmail.com wrote:
The livedocs.dojotoolkit.org/dojo/query
<
http://livedocs.dojotoolkit.org/dojo/query> docs talk about various
versions of dojo/query implementations (css, acme, etc.), but I don't
see any docs that explain the differences between the various
implementations. Does an explanation of the differences exist
somewhere?
-Chris
_______________________________________________
dojo-contributors mailing list
dojo-contributors at mail.dojotoolkit.org
<mailto:dojo-contributors at mail.dojotoolkit.org>
http://mail.dojotoolkit.org/mailman/listinfo/dojo-contributors_______________________________________________
dojo-contributors mailing list
dojo-contributors at mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-contributors An HTML attachment was scrubbed...