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

+cam, in case his mail filters are haters.

:DG<

On Wed, Jun 29, 2011 at 10:17 AM, Dimitri Glazkov <dglazkov@chromium.org> wrote:
> 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:18:13 UTC