<?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>5864</bug_id>
          
          <creation_ts>2008-07-14 01:18:58 +0000</creation_ts>
          <short_desc>[selectors-api2] Add new method for filtering NodeLists</short_desc>
          <delta_ts>2009-09-26 21:48:37 +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>http://lists.w3.org/Archives/Public/public-webapi/2008Apr/0128.html</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>lachlan.hunt</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>21169</commentid>
    <comment_count>0</comment_count>
    <who name="Lachlan Hunt">lachlan.hunt</who>
    <bug_when>2008-07-14 01:18:58 +0000</bug_when>
    <thetext>Need to investigate use cases for this.  There was some prior discussion of this in IRC too with some suggestions.

http://krijnhoetmer.nl/irc-logs/whatwg/20080415#l-831

&lt;Hixie&gt; document.querySelector(&apos;a x&apos;).querySelector(&apos;b x&apos;) is equivalent to &apos;a b x, b a x&apos; which can get much more complex</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27610</commentid>
    <comment_count>1</comment_count>
    <who name="Lachlan Hunt">lachlan.hunt</who>
    <bug_when>2009-09-23 09:44:56 +0000</bug_when>
    <thetext>Call this filterSelector() or something more appropriate.

Feedback based on JQuery indicates that NodeList.querySelector() would iteratively run the the method on all nodes in the list and return the combined result.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27640</commentid>
    <comment_count>2</comment_count>
    <who name="Lachlan Hunt">lachlan.hunt</who>
    <bug_when>2009-09-24 12:28:17 +0000</bug_when>
    <thetext>This issue does not really have any specific use cases that are worth addressing with a dedicated API.  This can be covered by using the Array.filter() method with a callback function that uses a matches-selector API to determine if a given element matches.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27686</commentid>
    <comment_count>3</comment_count>
    <who name="Lachlan Hunt">lachlan.hunt</who>
    <bug_when>2009-09-26 21:48:37 +0000</bug_when>
    <thetext>Re-resolving this as fixed as the scoped selector proposal in the current draft seems to adequately address the use cases as a side effect of the chosen solution for other cases.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>