Query the DOM with selector engine fallback support