Re: [selectors-nonelement] ::attr(*|localname), ::attr(ns|*), and ::attr(*)

On 27.2.2014 19:43, Andrew Fedoniouk wrote:
> Is there any option to have selectors on attribute names (partial matches) too
> rather than on their values?
> 
> I saw practical need for for something like:
> 
> E[data-*] { ... }
> 
> that will match any E element with any "data-something" attribute.

There is no such feature in selectors. Providing general solution would
be probably too complex for level of querying that selectors are
supposed to handle. However as HTML5 slowly moves into direction where
instead namespaces prefix-* approach is used (aria-*, its-*,
data-prefix-*) it makes sense to provide similar support as for matching
qualified names when namespaces are used.

    Jirka


-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
------------------------------------------------------------------
    Bringing you XML Prague conference    http://xmlprague.cz
------------------------------------------------------------------

Received on Wednesday, 5 March 2014 11:56:25 UTC