<font size="2">Explaining it via CSS selector level instead of engine name seems good, but the documentation doesn&#39;t really tell which selectors each CSS level supports.   </font><div><font size="2"><br></font></div><div>
<font size="2">For CSS2 it just says:</font><div><font size="2"><br></font></div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
<span class="Apple-style-span" style="font-family: verdana, sans-serif; line-height: 17px; ">consisting of elemental selectors: .class, #id, tag, and star, attribute selectors, and child (&gt;), descendant (space), and union (,) combinators</span></blockquote>
<div><br></div><div>That&#39;s vague to me, especially &quot;attribute selectors&quot;.</div><div><br></div><div>Earlier in the doc it lists the CSS three selectors (<a href="http://livedocs.dojotoolkit.org/dojo/query#standard-css3-selectors">http://livedocs.dojotoolkit.org/dojo/query#standard-css3-selectors</a>).   How about breaking up that table into CSS2, CSS2.1, and CSS3?</div>
<div><br></div><div><br><div class="gmail_quote">On Sat, Dec 10, 2011 at 12:39 AM, Kris Zyp <span dir="ltr">&lt;<a href="mailto:kzyp@dojotoolkit.org">kzyp@dojotoolkit.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    I updated the docs to more explicitly state the capabilities of the
    two selector engines, lite and acme. I am not sure if there is
    anything more that you are looking for. However, I was very
    intentional about focusing the API and the documentation towards
    having developers specifying CSS selector level required by a
    module, rather than tight coupling to a specific engine.<br>
    Thanks,<br>
    Kris<div><div class="h5"><br>
    <br>
    On 12/8/2011 11:08 PM, Bill Keese wrote:
    <blockquote type="cite"><font size="2">It&#39;s a good question.   Specifically
        about which selectors each engine supports.   I didn&#39;t find any
        good documentation, but the data seems to be out there in bits
        and pieces.</font>
      <div><br>
      </div>
      <div>
        1) Acme</div>
      <div><br>
      </div>
      <div>The selectors are listed in <a href="http://bugs.dojotoolkit.org/browser/dojo/dojo/trunk/selector/acme.js#L1308" target="_blank">http://bugs.dojotoolkit.org/browser/dojo/dojo/trunk/selector/acme.js#L1308</a>,</div>

      <div>although that doesn&#39;t show up well on our API site, perhaps
        because of the naming conflict with the new dojo/query module.</div>
      <div><br>
      </div>
      <div>Also on <a href="http://livedocs.dojotoolkit.org/dojo/query" target="_blank">http://livedocs.dojotoolkit.org/dojo/query</a>
        although perhaps that&#39;s not a comprehensive list.</div>
      <div><font size="2"><br>
        </font></div>
      <div><font size="2"><br>
        </font></div>
      <div><font size="2">2)  Lite</font></div>
      <div><font size="2"><br>
        </font></div>
      <div><font size="2">There&#39;s a hint in <a href="http://permalink.gmane.org/gmane.comp.web.dojo.devel/14245" target="_blank">http://permalink.gmane.org/gmane.comp.web.dojo.devel/14245</a>,
          which says:</font>
        <div>
          <br>
        </div>
        <div>
          <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
            <pre style="color:rgb(34,34,34);line-height:19px;text-align:justify;background-color:rgb(255,255,255)">it
is only supposed to do a simple CSS2 queries (#id, .class, tag and some
[attributes]), roughly the same capability as Dustin Diaz&#39;s Qwery
(<a rel="nofollow" href="https://github.com/ded/qwery" style="color:rgb(0,51,102);font-weight:bold;text-decoration:none;font-size:x-small" target="_blank">https://github.com/ded/qwery</a>))</pre>
          </blockquote>
          <div>
            <font size="2"><br>
            </font></div>
          <div><font size="2">And then from lite.js:</font></div>
          <div><font size="2"><br>
            </font></div>
          <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
            <font size="2">
              <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

                <span style="white-space:pre-wrap"> </span>&quot;^=&quot;:
                function(attrValue, value){</blockquote>
              <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

                <span style="white-space:pre-wrap"> </span>return
                attrValue.indexOf(value) == 0;</blockquote>
              <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

                <span style="white-space:pre-wrap"> </span>},</blockquote>
              <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

                <span style="white-space:pre-wrap"> </span>&quot;*=&quot;:
                function(attrValue, value){</blockquote>
              <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

                <span style="white-space:pre-wrap"> </span>return
                attrValue.indexOf(value) &gt; -1;</blockquote>
              <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

                <span style="white-space:pre-wrap"> </span>},</blockquote>
              <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

                <span style="white-space:pre-wrap"> </span>&quot;$=&quot;:
                function(attrValue, value){</blockquote>
              <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

                <span style="white-space:pre-wrap"> </span>return
                attrValue.substring(attrValue.length - value.length,
                attrValue.length) == value;</blockquote>
              <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

                <span style="white-space:pre-wrap"> </span>},</blockquote>
              <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

                <span style="white-space:pre-wrap"> </span>&quot;~=&quot;:
                function(attrValue, value){</blockquote>
              <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

                <span style="white-space:pre-wrap"> </span>return
                (&#39; &#39; + attrValue + &#39; &#39;).indexOf(&#39; &#39; + value + &#39; &#39;) &gt;
                -1;</blockquote>
              <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

                <span style="white-space:pre-wrap"> </span>},</blockquote>
              <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

                <span style="white-space:pre-wrap"> </span>&quot;|=&quot;:
                function(attrValue, value){</blockquote>
              <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

                <span style="white-space:pre-wrap"> </span>return
                (attrValue + &#39;-&#39;).indexOf(value + &#39;-&#39;) == 0;</blockquote>
              <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

                <span style="white-space:pre-wrap"> </span>},</blockquote>
              <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

                <span style="white-space:pre-wrap"> </span>&quot;=&quot;:
                function(attrValue, value){</blockquote>
              <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

                <span style="white-space:pre-wrap"> </span>return
                attrValue == value;</blockquote>
              <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

                <span style="white-space:pre-wrap"> </span>},</blockquote>
              <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

                <span style="white-space:pre-wrap"> </span>&quot;&quot;:
                function(attrValue, value){</blockquote>
              <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

                <span style="white-space:pre-wrap"> </span>return
                true;</blockquote>
              <blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

                <span style="white-space:pre-wrap"> </span>}</blockquote>
              <div><br>
              </div>
            </font></blockquote>
          <div> </div>
          <div><font size="2">A thread about the engines is in <a href="http://thread.gmane.org/gmane.comp.web.dojo.devel/14203" target="_blank">http://thread.gmane.org/gmane.comp.web.dojo.devel/14203</a>.</font></div>
          <div><font size="2"><br>
            </font></div>
          <div><font size="2"><br>
            </font></div>
          <div>3) sizzle</div>
          <div><br>
          </div>
          <div><font size="2">I remember lots of performance charts for
              the various selectors back in the days of the acme/sizzle
              wars, but probably we don&#39;t need to document sizzle much
              anyway.   Actually, looks like it&#39;s not even in our source
              tree anymore.</font></div>
          <div><font size="2"><br>
            </font><br>
            <div class="gmail_quote">On Wed, Dec 7, 2011 at 2:17 AM,
              Chris Mitchell <span dir="ltr">&lt;<a href="mailto:ccmitchellusa@gmail.com" target="_blank">ccmitchellusa@gmail.com</a>&gt;</span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                The <a href="http://livedocs.dojotoolkit.org/dojo/query" target="_blank">livedocs.dojotoolkit.org/dojo/query</a>
                docs talk about various<br>
                versions of dojo/query implementations (css, acme,
                etc.), but I don&#39;t<br>
                see any docs that explain the differences between the
                various<br>
                implementations.  Does an explanation of the differences
                exist<br>
                somewhere?<br>
                -Chris<br>
                _______________________________________________<br>
                dojo-contributors mailing list<br>
                <a href="mailto:dojo-contributors@mail.dojotoolkit.org" target="_blank">dojo-contributors@mail.dojotoolkit.org</a><br>
                <a href="http://mail.dojotoolkit.org/mailman/listinfo/dojo-contributors" target="_blank">http://mail.dojotoolkit.org/mailman/listinfo/dojo-contributors</a><br>
              </blockquote>
            </div>
            <br>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
dojo-contributors mailing list
<a href="mailto:dojo-contributors@mail.dojotoolkit.org" target="_blank">dojo-contributors@mail.dojotoolkit.org</a>
<a href="http://mail.dojotoolkit.org/mailman/listinfo/dojo-contributors" target="_blank">http://mail.dojotoolkit.org/mailman/listinfo/dojo-contributors</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div></div>