- From: Hayato Ito <notifications@github.com>
- Date: Fri, 01 Apr 2016 00:44:28 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Friday, 1 April 2016 07:45:06 UTC
> Also, this would mean that if the executing script does anything within the parent, like call a function, it exposes the shadow tree in a rather trivial matter.
I see. That would cause an unintentional leak by calling a function such as:
var script;
void f() {
script = document.currentScript;
//...
}
I thought that we should let DocumentOrShadowRoot have currentScript, however, I am afraid that would not help at all. In most cases, the script need to get the script element without any reference to its shadow root.
---
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-204295183
Received on Friday, 1 April 2016 07:45:06 UTC