<?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>29361</bug_id>
          
          <creation_ts>2016-01-06 20:02:48 +0000</creation_ts>
          <short_desc>Add CSS selectors</short_desc>
          <delta_ts>2016-01-06 20:02:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Requirements for Future Versions</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Benito van der Zander">benito</reporter>
          <assigned_to name="Jim Melton">jim.melton</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>124529</commentid>
    <comment_count>0</comment_count>
    <who name="Benito van der Zander">benito</who>
    <bug_when>2016-01-06 20:02:48 +0000</bug_when>
    <thetext>Nowadays CSS selectors are the standard way to query for some HTML elements, because these selectors are much shorter than XPath expressions, e.g. span#color div.red for ( element-with-id(&quot;blue&quot;)[name() = &quot;span&quot;]//div[tokenize(@class) = &quot;red&quot;] ). The alternative using contains-token ( element-with-id(&quot;blue&quot;)[name() = &quot;span&quot;]//div[contains-token(@class, &quot;red&quot;)]  ) is even longer.

Thus for HTML a function fn:css($selector as string) that evaluates a CSS selector on the descendants of the context item would be more useful, e.g. css(&quot;span#color div.red&quot;)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>