Re: [w3c/webcomponents] The way to access current script or current root, from Shadow DOM (#717)

> Using encapsulation in a different way from how we use it for shadow trees ...

What is the way we use it for shadow trees? How my encapsulation differs?

Per [spec](https://www.w3.org/TR/shadow-dom/#inertness-of-html-elements-in-a-shadow-tree):
> At the same time, it is an encapsulation abstraction, so it has to avoid affecting the document tree.

That's what I actually try to state here. I need a `<script>` that's able to affect shadow tree. Currently, it's only able to affect document tree.

-----

 Speaking of whatwg/html#1013, it's for modules only, isn't it?

I think the case of regular scripts are way simpler as they do not introduce problems like [multiple imports](https://github.com/whatwg/html/issues/1013#issuecomment-329346600)



-- 
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/717#issuecomment-351829785

Received on Thursday, 14 December 2017 20:41:53 UTC