-
Notifications
You must be signed in to change notification settings - Fork 164
Open
Description
Consider the following.
<sometag .... >
--shadowRoot--
<style>...</style>
<a id="test"></a>
<script>
$('a').on('click', function(event){ .... })
</script>
</sometag>
The problem is, these event's are not picked up from the VisualEvent:
Here is a way to find elements inside a shadowRoot element.
var all = document.querySelectorAll("*");
var length = all.length
for(i= 0; i < length; i++){
if(all[i],shadowRoot) all.concat(all[i].shadowRoot.querySelectorAll("*"));
}
Of course this is a quick and dirty way of archiving this, but may need a bit more thought and work on to it.
Let me know your thoughts.
Metadata
Metadata
Assignees
Labels
No labels