W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

Re: Component Model Update

From: Dimitri Glazkov <dglazkov@chromium.org>
Date: Wed, 24 Aug 2011 19:50:51 -0700
Message-ID: <CADh5Ky3eibu-rqPdzeyoPRJNeSp9YMDkiMdrW_AYLjyjnnANGg@mail.gmail.com>
To: John J Barton <johnjbarton@johnjbarton.com>
Cc: Dominic Cooney <dominicc@google.com>, Adam Barth <w3c@adambarth.com>, public-webapps <public-webapps@w3.org>, Maciej Stachowiak <mjs@apple.com>, Jonas Sicking <jonas@sicking.cc>, Boris Zbarsky <bzbarsky@mit.edu>
On Wed, Aug 24, 2011 at 2:50 PM, John J Barton
<johnjbarton@johnjbarton.com> wrote:
> On Wed, Aug 24, 2011 at 2:30 PM, Dominic Cooney <dominicc@google.com> wrote:
>> On Thu, Aug 25, 2011 at 2:03 AM, Dimitri Glazkov <dglazkov@chromium.org>
>> wrote:
>> > Yes, shadow DOM gives the author an extra lever to control visibility
>> > and hackability of their code. It's up to them to use this lever
>> > wisely.
> Maybe I grew up on to much Web koolaid, but browsers should be giving all
> extra levers to users. In real life control in the hand of "authors" means
> control in the hands of suits and suits will always pick the "hide all"
> setting.
>> This is not without precedent. Just like authors who choose to
>> > use canvas to build their entire applications are shutting the door
>> > (intentionally or not) on extensions, I bet we'll also see these
>> > extremes with the Component Model.
> In the case of canvas the reason is technical inferiority, the medium is
> write only. Component Model has not such technical limit.
>> However, I am also sure that a lot
>> > of authors will see value in retaining composability for extensions.
>> > If anything, shadow DOM can help authors draw proper composability
>> > boundaries and thus inform extensions developers where tweaking is ok
>> > and where may cause explosions.
> Again, that's old school.
> Independent of our different point of view on control, shadow DOM needs
> debug APIs. So much the better if these are available to extensions.

Let me see if I can capture this into a feature: user scripts may have
access to shadow DOM subtrees. In terms of WebKit, when run in user
script worlds, the Element has an extra accessor to spelunk down the
shadow DOM.

Is this what you're suggesting?


> jjb
Received on Thursday, 25 August 2011 02:51:16 UTC

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