You can safely use document._currentScript.ownerDocument all the time if
you're using webcomponents.js

On Mon, Mar 16, 2015 at 2:34 PM Nicolas Chauvat <[email protected]>
wrote:

> On Mon, Mar 16, 2015 at 04:05:03PM +0000, Eric Bidelman wrote:
> > You can use document._currentScript to support polyfill'd environments.
> >
> > http://webcomponents.org/polyfills/html-imports/#other-notes
>
> Thank you for pointing me to the right paragraph of the fine manual.
>
> Could you also tell me what is the code one usually writes to use
> currentScript or _currentScript depending on the fact that the
> polyfill is active or not active (chrome, firefox with or without
> webcomponents enabled)?
>
> Should I just use document._currentScript.ownerDocument and let the
> polyfill do its job as long as I have it in the head of my document?
>
> --
> Nicolas Chauvat
>
> logilab.fr - services en informatique scientifique et gestion de
> connaissances
>

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/CACGqRCBG3wcd6VQoxMMv%2BLnfx9ChjHwz%3Dn77KGgm1bfbCd%3DYTw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to