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

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