selectAll: Changes to follow ojan@'s review comment.
selectAll: Fix shadow DOM handling.