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

Re: [selectors-nonelement] First draft of a new spec for selecting non-element nodes

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 13 Feb 2014 10:16:12 -0800
Message-ID: <CAAWBYDC9roQUw6ptGc5p2MbpQwruQNB8UL3wn1267kDGo9fWGg@mail.gmail.com>
To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Cc: www-style list <www-style@w3.org>
On Thu, Feb 13, 2014 at 1:37 AM, Daniel Glazman
<daniel.glazman@disruptive-innovations.com> wrote:
> - I think the last sentence of section 2.1 should be clarified. Is the
>   attribute node pseudo-element allowed in CSS stylesheets or not. Given
>   the fact it is unlikely browsers will implement something that
>   generates no boxes, I think that pseudo will remain invalid in CSS
>   sheets to avoid the creation of the corresponding OM.

That sentence makes no mention of it being invalid in CSS, and I'm
strongly against Selector syntax being officially valid only in some
contexts.  Browser implementations might not ever *implement* this
selector, but if they do, it should be recognized in CSS as well.  (It
just doesn't do anything.)

> - I think you need a section 3 about Selectors API saying that the
>   expectation is that non-element selectors will be usable in Selectors
>   API.

This should be generic and in the Pseudo-Elements spec instead.  Let's
write that. ^_^

~TJ
Received on Thursday, 13 February 2014 18:17:00 UTC

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