How to use a template without a shadowRoot?
问题 I expected one of the two togglePanels() to work but they do not? <template> <core-drawer-panel forceNarrow> </core-drawer-panel> </template> <script> var t = document.querySelector('template'); t.querySelector('core-drawer-panel').togglePanel() t.shadowRoot.querySelector('core-drawer-panel').togglePanel() </script> Also note that in my console it says #document-fragment instead of #shadowRoot because I can not wrap it in a polymer element, so that the other js frameworks do not break. EDIT: