Adopt shadow roots

This now adopts shadow roots in the subtree as well as the older shadow roots in case there are multiple.