JavaScript encapsulation for shadow DOM
I think it is better to have javascript encapsulated as css in shadow DOM. There should be an attribute in &lt;template&gt; tag to restrict the encapsulated javascript to access DOM, javscript outside of &lt;template&gt;