On Tue, Nov 29, 2011 at 11:15, Roland Steiner <rolandsteiner@google.com>wrote:
> If we are considering worker-like decorators, then AFAICT it doesn't have
> to be an actual worker - it's enough if it's a separate object that can be
> attached and detached. As long as we define the interfaces nicely, FWIW
> this object could even hold internal state, etc.
>
I should point out that we already have exactly such an interface in the
form of the host element <-> ShadowRoot boundary! Essentially, one could
view Decorators as shadow DOM where scripts are only allowed in the shadow
side.
- Roland