Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add isContainedWithin function for ShadowRoots #1374

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Dec 27, 2020

  1. Add isContainedWithin function for ShadowRoots

    Previously, `el.contains(e)` would return `false` if `e` was inside ShadowRoots. If `el.contains(e)` returns `false`, `isContainedWithin(e, el)` will instead check `e`'s root, and the root's root, and so on, until either `contains` returns `true` or the top of the tree is reached.
    alexalekseyenko committed Dec 27, 2020
    Configuration menu
    Copy the full SHA
    9fd21b4 View commit details
    Browse the repository at this point in the history