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

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 UTC