What happens to elements which aren't distributed? Note that there's no danger of things being counted twice as the code is now, since I ignore direct children if there is a shadow root. However, if there are non-distributed children, those won't be picked up.