W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2011

Re: Component Model: Landing Experimental Shadow DOM API in WebKit

From: Dimitri Glazkov <dglazkov@chromium.org>
Date: Wed, 29 Jun 2011 10:17:01 -0700
Message-ID: <CADh5Ky0H-j1UEevUFgJAQkNv-RWB8Nzi2fV8jzH1D58zSQG2fg@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: public-webapps@w3.org
On Wed, Jun 29, 2011 at 10:14 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 6/29/11 12:59 PM, Dimitri Glazkov wrote:
>> It will just return null when the membrane is in place.
> OK.  And the encapsulation will prevent other ways of getting at the shadow
> tree?

Yes! element.shadow is the only way to access shadow content. All
other plumbing (like events retargeting) ensures there's no exposure.

>> Ah yes -- I didn't know how to express this in IDL. The Node comes to
>> Document by way of TreeScope.
> Document directly inherits from Node.
> It sounds like what you really want to do is change Document to inherit from
> TreeScope instead.... or make TreeScope not inherit from Node.

The former: http://codesearch.google.com/codesearch#OAMlx_jo-ck/src/third_party/WebKit/Source/WebCore/dom/Document.h&l=208

> -Boris
Received on Wednesday, 29 June 2011 17:17:26 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:20 UTC