This should work only for "first-level" shadow roots, but not for nested shadow roots.

Comments