<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>5860</bug_id>
          
          <creation_ts>2008-07-13 11:17:56 +0000</creation_ts>
          <short_desc>[selectors-api2] Define new scoped method</short_desc>
          <delta_ts>2009-09-26 21:50:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Selectors API</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lachlan Hunt">lachlan.hunt</reporter>
          <assigned_to name="Lachlan Hunt">lachlan.hunt</assigned_to>
          <cc>jresig</cc>
    
    <cc>mike</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21165</commentid>
    <comment_count>0</comment_count>
    <who name="Lachlan Hunt">lachlan.hunt</who>
    <bug_when>2008-07-13 11:17:56 +0000</bug_when>
    <thetext>To address the use cases which aren&apos;t entirely covered by the proposed :context pseudo-class and improve performance for JS libraries, we may need to define a new scoped method.

IRC discussion in #whatwg:
&lt;Lachy&gt; othermaciej, I&apos;m not yet convinced we need queryScopedSelector as well as this.
&lt;othermaciej&gt; Lachy: I think there are two reasons we may still want it:
&lt;othermaciej&gt; 1) otherwise JS libraries have to do rewriting of their incoming selectors, which is both slower and more error-prone in JS code than in native code
&lt;othermaciej&gt; 2) without a way to access those syntax features directly, it becomes harder for authors to ever switch off the library wrappers to the native version, even once all browsers support it

http://krijnhoetmer.nl/irc-logs/whatwg/20080711#l-23

There are also some use cases that aren&apos;t addressed by the current :context proposal, however, this is not intended to be a replacement for :context.  It is expected that the solution will be usable in conjunction with :context, but differently from the existing methods.

See the appendix at the end of this email
http://lists.w3.org/Archives/Public/public-webapi/2008May/0057.html

And a proposed solution to the parsing problem
http://lists.w3.org/Archives/Public/public-webapi/2008May/0058.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21210</commentid>
    <comment_count>1</comment_count>
    <who name="Lachlan Hunt">lachlan.hunt</who>
    <bug_when>2008-07-17 11:39:24 +0000</bug_when>
    <thetext>Possible parsing solution

http://lists.w3.org/Archives/Public/public-webapps/2008JulSep/0181.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27688</commentid>
    <comment_count>2</comment_count>
    <who name="Lachlan Hunt">lachlan.hunt</who>
    <bug_when>2009-09-26 21:50:17 +0000</bug_when>
    <thetext>The scoped selector string proposal should adequately address the use cases for this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>