Re: [Component Model]: Shadow DOM Subtree per element: One or Many?

Unless I'm misunderstanding something, I believe this actually is - or at
least touches upon - several questions in disguise:

.) Do we want to allow decoration of elements that are already in the DOM
tree?

- which is for all intents and purposes a corollary of:

.) Do we allow calling of "new ShadowRoot" outside of an element
constructor?

If no, then we don't have a problem with "dead elements", because the author
can only declare new elements (and use encapsulation), but not meddle with
existing ones. FWIW, I don't think there is any real use-case for calling
"new ShadowRoot" within the constructor twice.
However, in this case we have to answer how encapsulation can address the
stated use cases for decoration. This probably means answering:

.) How is attribute forwarding handled from the host element to a nested
(form) element?
.) How can components participate in forms (and other fun)?

... or just leave decoration out for the time being (which I think is quite
reasonable).

OTOH, if the answer to the decorators question is "yes", then the above
mentioned issues with multiple shadow roots arise.

Received on Friday, 26 August 2011 07:25:12 UTC