I'm in a unique situation where I need element.querySelector(selector) to test against the root element itself, and return it if it matches.
How would you do this?
Note that element.parentNode.querySelector(selector) wouldn't work for me since it would amtch against element's siblings.