The HTMLImports polyfill should ensure that "document._currentScript" is
universally available (of course document.currentScript is correct but it's
not possible to correctly polyfill so we opt for _currentScript).

I can't seem to reproduce this issue. A test case would be extremely
helpful, thanks.


On Tue, Jan 28, 2014 at 8:09 AM, <[email protected]> wrote:

> The API docs for HTMLImports says
>
> In a native HTML Imports, document.currentScript.ownerDocument references
>> the import document itself. In the polyfill use
>> document._currentScript.ownerDocument (note the underscore).
>
>
> Given the changes to HTMLImports in this release, is this still suppose to
> work in 0.1.4?
>
> After upgrading to 0.1.4, inside a script tag in my import file
> document.currentScript is null while document._currentScript is undefined.
>
>
> Changing my code to get the doc from HTMLImports.currentScript fixed
> everything for me.
>
>  Follow Polymer on Google+: plus.google.com/107187849809354688692
> ---
> You received this message because you are subscribed to the Google Groups
> "Polymer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/polymer-dev/b54b3d93-54b8-48d7-8a6c-8239656aaf92%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/CA%2BrMWZi%2BCgXySj0HKo1wXa6YTvCy2dyibOHyDP6AgHfPROSYTA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to