Don't rely on :visible and :not(..., ...) selectors which only work with Sizzle.
Merge pull request #2001 from arendjr/master

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