W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2015

Re: [Shadow] Q: Removable shadows (and an idea for lightweight shadows)?

From: Elliott Sprehn <esprehn@chromium.org>
Date: Thu, 26 Mar 2015 13:40:39 -0700
Message-ID: <CAO9Q3iJD-uy1EWmxZh+_kK6mrKnWe+LWQQ6poZvZMf+p38ugvg@mail.gmail.com>
To: Ryosuke Niwa <rniwa@apple.com>
Cc: Travis Leithead <travis.leithead@microsoft.com>, Justin Fagnani <justinfagnani@google.com>, "Dimitri Glazkov (dglazkov@google.com)" <dglazkov@google.com>, Arron Eicholz <arronei@microsoft.com>, "Anne van Kesteren (annevk@annevk.nl)" <annevk@annevk.nl>, WebApps WG <public-webapps@w3.org>
On Thu, Mar 26, 2015 at 1:38 PM, Ryosuke Niwa <rniwa@apple.com> wrote:

>
> On Mar 26, 2015, at 1:23 PM, Travis Leithead <
> travis.leithead@microsoft.com> wrote:
>
>  You make a series of excellent points.
>
>
>
> In the sense that you have a new set of nodes to manage holistically, then
> having some sort of “document” container does makes sense for that (a
> ShadowRoot) in order to place all your search/navigation APIs.
>
>
>
> You got me thinking though—getElementById is currently not available on
> ShadowRoot right? Does that API in the host’s document find IDs in the
> shadow? I presume not given the guidelines you mentioned. I wonder what
> other APIs from Document are desired?
>
>
> I thought getElementById existed in ShadowRoot at some point but the
> latest Blink code doesn't have it.  It looks like Blink has
> querySelector/querySelectorAll via ParentNode:
>
>
> https://chromium.googlesource.com/chromium/blink/+/master/Source/core/dom/shadow/ShadowRoot.idl
>
> https://chromium.googlesource.com/chromium/blink/+/master/Source/core/dom/ParentNode.idl
>
>
The spec changed,
https://dom.spec.whatwg.org/#interface-nonelementparentnode

ShadowRoot is a DocumentFragment and DocumentFragment implements
NonElementParentNode.

- E
Received on Thursday, 26 March 2015 20:41:58 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:27:26 UTC