W3C home > Mailing lists > Public > www-style@w3.org > March 2013

Re: [selectors] Matching of :first-child and the like for elements whose parent is not an element

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Tue, 19 Mar 2013 21:30:52 +0100
Message-ID: <5148CAFC.7000208@disruptive-innovations.com>
To: www-style@w3.org
On 19/03/13 21:11, Boris Zbarsky wrote:

> On 3/19/13 4:07 PM, Daniel Glazman wrote:
>> So we need to deal with Boris's request as an errata, and do a s/some
>> other element/some other node/ in the prose he quoted.
>>
>> About not selecting the root of the document, I don't see that
>> as a bug since the name of the pseudo is first-*child* after all.
>
> The root element of a document is a child of "some other node": the
> document.  So those two sentences are mutually contradictory.

Correct :-)

> I don't have a strong opinion on what behavior we want for the root
> element, but I want us to be consistent about what we want here.  ;)

Yeah, in the world of Selectors, we only dealt with selectable nodes.
Boris, do you want to take an action item to summarize the various
possibilities (on both Selectors and Selectors API sides if needed)
here so the WG can make a decision?

</Daniel>
Received on Tuesday, 19 March 2013 20:31:16 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:07 GMT