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

>The use cases for this are the same for the main document, ex. reading data off the `<script>` element.
>
>`<script src="..." data-option1="..." data-option2="..."></script>`

Again, I don't think that's a useful thing to do inside a shadow DOM since that would mean that every instance of such a shadow DOM would try to fetch the script. Unless the script is cached and doesn't require validation, it would end up issuing a network request each time.  A better approach would be using a custom element.

---
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-205514843

Received on Monday, 4 April 2016 21:58:35 UTC