link-hijacker icon indicating copy to clipboard operation
link-hijacker copied to clipboard

Does not work with Shadow DOM

Open tpluscode opened this issue 4 years ago • 0 comments

Because Shadow Roots cause event retargeting, link-hijacker is unable to find the source a element which triggered the event.

The best alternative appears to be composedPath which Edge sadly only supports in version 79+. It could be good enough, still better than not supporting shadow roots in any way at all.

I would be happy to submit a PR.

Any other suggestions?

tpluscode avatar Aug 04 '21 08:08 tpluscode