I found a solution to the problem. Now you can use web components with native APIs in Chrome and with policies on Firefox and Safari.
Just update this line:
var thisDoc = (thatDoc.currentScript || thatDoc._currentScript).ownerDocument;
to
var thisDoc = (thatDoc._currentScript || thatDoc.currentScript).ownerDocument;
Why does it work?
_currentScript comes from polypoluses and allows you to get the correct ownerDocument for the <template>
request. If polyfills does not exist, the code above uses currentScript instead, which is available in Chrome.
I already made a Pull request on github.
Andre source share