I have
div id=outer
#shadowRoot
div id=inner
button
In the click handler of the button, I want to reference the div "inner". In a non shadowDom world, this would be document.getElementById('inner')
, but what is the equivalent in a shadow DOM world?
NB. This is accessing from within the custom-element. I am not trying to pierce the shadow DOM from outside.