Re: [w3c/webcomponents] document.currentScript from a script in a shadow tree. (#477)

+1 on accessing the shadow dom from a script node. How do you propose to do something like this

```html
<template id="component">
<div id="some-div"></div>
<link href="/static/css/main.cacbacc7.css" rel="stylesheet">
<script src="/static/js/bundle.js" type="text/javascript"></script>
</template>
```

*bundle.js*
const myDom = window.currentScript.ownerDocument.querySelector('#some-div');

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/477#issuecomment-320621565

Received on Monday, 7 August 2017 09:54:47 UTC