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 19:33:42 +1300
Message-ID: <AANLkTinytu-3uqbejmAp=ShRR_LEF3cfQADqp0ViORnV@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Dimitri Glazkov <dglazkov@google.com>, public-webapps <public-webapps@w3.org>
On Tue, Dec 14, 2010 at 2:46 PM, Tab Atkins Jr. <jackalmage@gmail.com>wrote:

> Then there's no problem.  You don't need the templates to be live to
> make child changes work.  You just need to maintain some record that
> any normal-DOM elements which match "*" should appear as children of
> the shadow node #three in the final flattened tree.  appendChild()'ing
> new elements to the x-fancycontainer will appropriately wire the
> elements into the shadow tree.  This sort of selector->node map can be
> divined from the template and copied into a separate data structure,
> just like the actual shadow nodes can just be cloned out of the
> template into separate live DOM.  No linkage back to the original
> template is required.

Sure, but you also have to handle the "includes" attribute and the
"attributes" attribute, so in fact you need to know a fair bit about the
template to handle dynamic changes to the bound document. You might decide
it's easier to just hold a reference to the template itself.

But yeah, we're agreeing.

"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 06:34:14 UTC

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