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

On 25.2.2014 22:15, Tab Atkins Jr. wrote:
>> I can live with this, but in my opinion ::attr(*) makes much more sense.
> 
> Doing that would mean that we're not consistent with type selectors
> *or* ourselves.  It's bad to me that ::attr(title) grabs only "title"
> attributes in the null namespace, but you have to type ::attr(|*) to
> select all the attributes in the null namespace, because ::attr(*)
> instead selects all attributes in all namespaces.

Two most common operations with attributes are selecting one specific or
selecting all of them, so it makes sense to optimize for such cases. We
shouldn't try to make namespace situation more messy then it is.

   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, 26 February 2014 08:32:02 UTC