Skip to content

Commit

Permalink
Add support for shadow elements (#7808)
Browse files Browse the repository at this point in the history

Co-authored-by: David Burns <david.burns@theautomatedtester.co.uk>
  • Loading branch information
diego-fernandez-santos and AutomatedTester authored Apr 7, 2020
1 parent d3b6ad0 commit 2eeb6a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions javascript/atoms/inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,9 @@ bot.inject.cache.getElement = function(key, opt_doc) {
if (node == doc.documentElement) {
return el;
}
if (node.host && node.nodeType === 11) {
node = node.host;
}
node = node.parentNode;
}
delete cache[key];
Expand Down

0 comments on commit 2eeb6a9

Please sign in to comment.