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: Mon, 24 Feb 2014 14:55:18 +0100
Message-ID: <530B4F46.4020903@kosek.cz>
To: Simon Pieters <simonp@opera.com>
CC: "Tab Atkins Jr." <jackalmage@gmail.com>, Simon Sapin <simon.sapin@exyr.org>, www-style <www-style@w3.org>
On 24.2.2014 14:47, Simon Pieters wrote:
> ::attr(foo) selecting all foo attributes in any namespace would be
> inconsistent with the selector [foo] which selects elements with a foo
> attribute in no namespace.

Well, then I think that it makes sense to ::attr(*) and ::attr(foo)
behave differently regarding namespaces:

::attr(*) should select all attributes to be consistent with universal
selector, equivalent to ::attr(*|*)

::attr(foo) should select foo in no namespace to be consistent with
attribute selectors, equivalent to ::attr(|foo)

This is also consistent with XPath, and should create less surprises to


  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 Monday, 24 February 2014 13:55:45 UTC

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