support shadow dom selectors. fixes #1801