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

On 13/02/2014 09:59, Jirka Kosek wrote:
> Hi,
>
> I'm happy to announce that with Tab's help I was able to produce first
> draft of a spec defining way to select attributes from document as
> agreed in Shenzen F2F meeting
> (http://lists.w3.org/Archives/Public/www-style/2013Nov/0358.html).
>
> Spec is available at:
>
> http://dev.w3.org/csswg/selectors-nonelement/
>
> Any comments welcomed.


Excellent news, this was absolutely needed for ITS 2.0 to have
CSS-based ITS rules match the feature level of XPath-based ITS
rules.

Some comments:

- title of section 2.1 should be "Attribute node pseudo-element"

- 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.

- 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.

</Daniel>

Received on Thursday, 13 February 2014 09:38:22 UTC