Re: [webcomponents] Encapsulation and defaulting to open vs closed (was in www-style)

On Tue, Feb 11, 2014 at 3:50 PM, Maciej Stachowiak <mjs@apple.com> wrote:

>
> On Feb 11, 2014, at 3:29 PM, Dimitri Glazkov <dglazkov@chromium.org>
> wrote:
>
>
>
>> Dimitri, Maciej, Ryosuke - is there a mutually agreeable solution here?
>>
>
> I am exactly sure what problem this thread hopes to raise and whether
> there is a need for anything other than what is already planned.
>
>
> In the email Ryosuke cited, Tab said something that sounded like a claim
> that the WG had decided to do public mode only:
>
> <http://lists.w3.org/Archives/Public/www-style/2014Feb/0221.html>
> Quoting Tab:
>
> The decision to do the JS side of Shadow DOM this way was made over a
> year ago.  Here's the relevant thread for the decision:
> <
> http://lists.w3.org/Archives/Public/public-webapps/2012OctDec/thread.html#msg312
> >
> (it's rather long) and a bug tracking it
> <https://www.w3.org/Bugs/Public/show_bug.cgi?id=19562>.
>
>
> I can't speak for Ryosuke but when I saw this claim, I was honestly unsure
> whether there had been a formal WG decision on the matter that I'd missed.
> I appreciate your clarification that you do not see it that way.
>
>
> Quoting Dmitri again:
>
> The plan is, per thread I mentioned above, is to add a flag to
> createShadowRoot that hides it from DOM traversal APIs and relevant CSS
> selectors: https://www.w3.org/Bugs/Public/show_bug.cgi?id=20144.
>
>
> That would be great. Can you please prioritize resolving this bug[1]? It
> has been waiting for a year, and at the time the private/public change was
> made, it sounded like this would be part of the package.
>

Can you help me understand why you feel this needs to be prioritized? I
mean, I don't mind, but it would be great if I had an idea on what's the
driving force behind the urgency?


>
> It seems like there are a few controversies that are gated on having the
> other mode defined:
> - Which of the two modes should be the default (if any)?
>

This is re-opening the old year-old discussion, settled in
http://lists.w3.org/Archives/Public/public-webapps/2013JanMar/thread.html#msg800,
right?


> - Should shadow DOM styling primitives be designed so that they can work
> for private/closed components too?
>

Sure. The beauty of a hidden/closed mode is that it's a special case of the
open mode, so we can simply say that if a shadow root is "closed", the
selectors don't match anything in that tree. I left the comment to that
effect on the bug.

:DG<

Received on Wednesday, 12 February 2014 00:04:28 UTC