Re: [webcomponents] Change registries to be per document and never shared between documents (#369)

So I guess putting on Window doesn't work actually if we want to share since createDocument() documents don't have any associated window. So let's keep it on document and create patches for createDocument() and createHTMLDocument() that hand out the registry to those.

The current spec gives template a new empty registry but it seems like that's a bug per recent discussions and instead it should just have no registry so that defineElement() always fails there. (Same with XHR.)

I will try to work on a PR for this today. It sounds like we have a rough plan which is best critiqued in concrete form. I might tackle #413 first since it's getting in the way.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/369#issuecomment-191897939

Received on Thursday, 3 March 2016 18:30:58 UTC