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

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