W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2010

Re: XBL2: First Thoughts and Use Cases

From: Robert O'Callahan <robert@ocallahan.org>
Date: Tue, 14 Dec 2010 14:16:11 +1300
Message-ID: <AANLkTinfptNdshyx3R4T0orfgaDmU-5hMVKzLMN4hw6W@mail.gmail.com>
To: Dimitri Glazkov <dglazkov@google.com>
Cc: public-webapps <public-webapps@w3.org>
On Mon, Dec 13, 2010 at 5:12 AM, Dimitri Glazkov <dglazkov@google.com>wrote:

> > We definitely have use-cases that require the shadow DOM to be
> dynamically
> > updated when an element that expands to a template instance has its
> subtree
> > changed. Almost every application that combines dynamic DOM modification
> > (e.g. editing) with templates needs this. So you do need to record how
> > instances were created.
> Can you give a more specific example?

Suppose I use XBL2 to define <fancycontainer>, a container with elaborate
styling that I can't do with CSS alone. Changes to the children of a
<fancycontainer> need to be reflected in the shadow DOM tree built for
<fancycontainer>, otherwise dynamic changes in the presence of
<fancycontainer> are just broken. For example, adding a child to <container>
would need to find the associated template instance and insert the child
into the right place in the instance.

"Now the Bereans were of more noble character than the Thessalonians, for
they received the message with great eagerness and examined the Scriptures
every day to see if what Paul said was true." [Acts 17:11]
Received on Tuesday, 14 December 2010 01:16:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:14 UTC