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: Øyvind Stenhaug <oyvinds@opera.com>
Date: Wed, 20 Mar 2013 18:56:46 +0100
To: www-style@w3.org, "Boris Zbarsky" <bzbarsky@mit.edu>
Message-ID: <op.wt9aswxzbunlto@oyvinds-desktop>
On Wed, 20 Mar 2013 17:11:02 +0100, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 3/20/13 9:25 AM, Øyvind Stenhaug wrote:
>> On Tue, 19 Mar 2013 21:27:52 +0100, Tab Atkins Jr.
>> <jackalmage@gmail.com> wrote:
>>
>>> I don't see a meaningful distinction between a root node and a node
>>> without a parent in a DocumentFragment.
>>
>> Maybe the latter should match :root, then? Then it would be possible to
>> select for it explicitly (and do a union with :first-child or whatever),
>> if desired. See also
>> http://lists.w3.org/Archives/Public/www-style/2007Jun/0116.html
>
> Unlike a Document, a DocumentFragment can have multiple child elements.

Oh right, so it's a forest of element trees. That wouldn't work, then.

-- 
Øyvind Stenhaug
Opera Software ASA
Received on Wednesday, 20 March 2013 17:57:18 GMT

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