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

Re: [webcomponents]: Making Shadow DOM Subtrees Traversable

From: Dave Methvin <dave.methvin@gmail.com>
Date: Thu, 7 Mar 2013 13:54:41 -0500
Message-ID: <CACnq-u+PsDAgeTpo3hT8bTqjez91shvhxBJpL2PG4BAtn=SLRA@mail.gmail.com>
To: Scott González <scott.gonzalez@gmail.com>
Cc: (wrong string) čka <Bronislav.Klucka@bauglir.com>, public-webapps <public-webapps@w3.org>
<scott.gonzalez@gmail.com> wrote:

> As for the <input type="date"> example: This isn't arbitrary 3rd party
> scripts coming and crippling your DOM in unexpected ways. This is you as
> the developer of the site saying the native experience is too limiting and
> then opting in to a different UI. This is also not global, change the world
> behavior, this is on a per-element basis.
>

Something like this is an example of where judicious breaking of the seals
can make a big difference. It would be a shame if all sorts of useful
components were trapped in opaque boxes with no way for the enclosing pages
to enhance or examine them. That seems counter to what the web has been
about since its inception, awesome stuff that forms the kernel of all sorts
of innovative mashups.

Another example, let's say Disqus created a webcomponent to show
discussions related to content. I want to use that on my page but enhance
it with a bozo/spam filter, fully understanding that it will require
knowledge of Disqus webcomponent internals. Yes it may break. But my
alternative is to make a feature request to Disqus, hope they approve, and
wait for an implementation if it's even *possible*. For example, I may be
using information only I have to do the filtering, and I don't want to
share it with Disqus.

So sure, put up a big warning that says "CAUTION: The edges of this sign
are sharp!" but don't prevent people from getting to the internals of
webcomponents at all. That puts the web at the mercy of the implementer
almost as surely as closed source does.
Received on Thursday, 7 March 2013 18:55:09 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:57 GMT