Re: XBL2: First Thoughts and Use Cases

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.

Rob
-- 
"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