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

bodyContains: Walk up the nested shadow root chain to check if the body contains the element #2434

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

Commits on Mar 26, 2024

  1. Walk up the nested shadow root chain to check if the body contains el…

    …ement.
    
    bodyContains() currently assumes that shadow root host element is always
    contained in the root body. This change walks up the chain of shadow roots to
    find the topmost host element and verify for that one if it exists in the root
    body.
    andrejota committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    f8b5ef2 View commit details
    Browse the repository at this point in the history