Re: [webcomponents] HTML Imports

On Sun, Oct 6, 2013 at 6:26 AM, Angelina Fabbro <angelinafabbro@gmail.com>wrote:

> So, Anne just reopened this bug:
>
> https://www.w3.org/Bugs/Public/show_bug.cgi?id=22305
>
> To bring in the discussion here and provide some context, a bunch of us
> got together at the Mozilla Summit in Brussels to discuss the current state
> of web components so that we could figure out what platform could implement
> (the how and when) in Firefox.
>
> What is the global object that scripts in the imported resource are
> executed against?
>

The master document's.

My expectation would be that once imported, scripts execute against the
> global/window context of the document doing the importing (presumably the
> 'master document' of a developer's application).
>

Yup.

And, if the script is executed against the global/window object of the main
> document, can and should you be able to access the imported document?
>

You can and you should. HTML Imports are effectively #include for the Web.

:DG<

Received on Sunday, 6 October 2013 15:25:46 UTC