W3C home > Mailing lists > Public > www-style@w3.org > July 2007

Re: attributes as virtual tags

From: Pascal Germroth <pascal@germroth.name>
Date: Thu, 05 Jul 2007 16:46:56 +0200
Message-ID: <468D0460.2040900@germroth.name>
To: Dmitry Turin <sql40@narod.ru>
CC: www-style@w3.org

Dmitry Turin schrieb:
[...]
>>>   §a1,§a2,§a3 { display: table-cell }
[...]
> RK> As attributes are considered child nodes of an element, this kinda makes
> RK> sense.
> 
> Let's enter this selector into CSS4.

But without the §! It should be @ to look a bit like XPath (where @name
means the attribute) -- and maybe some time in the not too far future my
wish will come true and XPath will be used as selection language for
CSS[*] (because I can't see how CSS should do things like :only-child
without lookahead, which was the counter-argument to XPath iirc).

But I think the @ is reserved (don't know the grammar) -- @namespace and
so on?


-- 
Pascal

*] it could be as a function: xpath("//foo[//bar]")
Received on Thursday, 5 July 2007 14:47:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:51 GMT