[Bug 23839] [Custom]: Template document should not share registry with its document

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23839

--- Comment #3 from Dimitri Glazkov <dglazkov@chromium.org> ---
(In reply to Dominic Cooney from comment #2)
> Two questions:
> 
> 1. The link mentions in Comment 1 mentions initializers running in
> templates; this proposal is to not share a registration context at all and
> hence not run any callbacks. Is not doing any prototype swizzling/callbacks
> just the logical consequence of not running the initializer?

Right.

> 2. If the registration context is not shared, does the template document get
> a blank registration context ('register' will work when used on a template
> document) or not? ('register' will throw when used on a template document.)

Just a blank registration context. Technically, it's not blank. When we spec
the Registry object API, we'll say that at the time of creating a template
document, we pour all of the built-in HTML element definitions into this
context (just like with a Document created with XHR). The authors should be
able to do the same type of sharing with their elements using that API.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 18 November 2013 23:59:58 UTC