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

Re: [css3-images] CSS element reference identifier

From: Robert O'Callahan <robert@ocallahan.org>
Date: Tue, 7 Feb 2012 18:33:59 +1300
Message-ID: <CAOp6jLbRnhGxhb35u7P-zuiQ7RDOFnLaJXhz-Yh3_biw-pKFrQ@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: "L. David Baron" <dbaron@dbaron.org>, www-style@w3.org
On Mon, Feb 6, 2012 at 9:46 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:

> Elika and I were recently discussing this, and realized that having
> the element reference identifier use the current grammar (as a bare
> IDENT) is future-hostile, as we plan to eventually extend it to accept
> arbitrary selectors, and IDENTs collide with tagname selectors.
>

We've discussed this at least a couple of times before ... I think that if
you want to have something that can use arbitrary selectors, you should
define a new function elements() that takes a selector and can handle
multiple matched elements, and does not consult the CSSElementMap at all.

Rob
-- 
"If we claim to be without sin, we deceive ourselves and the truth is not
in us. If we confess our sins, he is faithful and just and will forgive us
our sins and purify us from all unrighteousness. If we claim we have not
sinned, we make him out to be a liar and his word is not in us." [1 John
1:8-10]
Received on Tuesday, 7 February 2012 05:38:10 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:50 GMT