an equivalent non-qsa version of the selector engine for headless environments