I have example HTML code:
<section class="search-module">
#shadow-root (open)
<div class="app">
<div class="title">Product Title</div>
</div>
</section>
And with this code I can access to shadow root
element parent container:
var searchModule = document.getElementsByClassName("search-module").item(0);
But can't get elements inside shadow root
container using this command:
searchModule.getElementsByClassName("title") // undefined
searchModule.getElementsByClassName("title")
is working perfectly. Checked on JSBin