Don't rely on :visible and :not(..., ...) selectors which only work with Sizzle.