Skip to content

sirlancelot/sizzle-pseudos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery/Sizzle Custom Pseudo Selectors

Just my collection of pseudos.

Performance

Take care about how many elements will be passed through these selectors as they will not be able to take advantage of the performance boost provided by the native DOM querySelectorAll() method. To achieve the best performance when using any of these pseudos, first narrow down your set using a native selector and then use .filter(":pseudo()").

Available Pseudos

  • :ancestor() - Selects elements with a common ancestor.
  • :in-viewport() - Selects elements which are within the current viewport.
  • :regexp() - Finds elements which have a property matching a given RegExp.

About

A collection of cool custom pseudo selectors for jQuery & Sizzle.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published