W3C home > Mailing lists > Public > www-style@w3.org > February 2014

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

From: Jirka Kosek <jirka@kosek.cz>
Date: Wed, 26 Feb 2014 09:31:27 +0100
Message-ID: <530DA65F.4070803@kosek.cz>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: Simon Sapin <simon.sapin@exyr.org>, Simon Pieters <simonp@opera.com>, www-style <www-style@w3.org>
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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:19 UTC