W3C home > Mailing lists > Public > public-qt-comments@w3.org > April 2014

[Bug 22258] Provide function for easy matching of HTML and DITA class attributes

From: <bugzilla@jessica.w3.org>
Date: Mon, 28 Apr 2014 22:06:56 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-22258-523-7stF3zBr0E@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=22258

Liam R E Quin <liam@w3.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |liam@w3.org

--- Comment #4 from Liam R E Quin <liam@w3.org> ---
The usual ways I have seen people match class attributes for HTML are
(expanding on the original request)

(1) //div[@class = 'etymology']

and, for people smart enough to realise they might have more than one class
name in the attribute,

(2) //div[contains(@class, 'etymology')]

Only very rarely do you see,

(3) //div[contains(concat(' ', @class, ' '), concat(' ', etymology, ' '))]

It's also a common request on places like stackoverflow.

It's a common need, something that many people get wrong when they try to write
it, and something that would improve XPath's usage for the Open WebPlatform.
I've raised it before and still support the idea, even though XPath 3 is
already pretty big.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 28 April 2014 22:06:58 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:55 UTC