[Bug 29361] New: Add CSS selectors

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29361

            Bug ID: 29361
           Summary: Add CSS selectors
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Requirements for Future Versions
          Assignee: jim.melton@acm.org
          Reporter: benito@benibela.de
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

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("blue")[name() =
"span"]//div[tokenize(@class) = "red"] ). The alternative using contains-token
( element-with-id("blue")[name() = "span"]//div[contains-token(@class, "red")] 
) 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("span#color div.red")

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 6 January 2016 20:02:55 UTC