diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2013-02-26 21:59:08 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2013-02-27 22:45:55 -0500 |
commit | 8be9cd1ce71de8affa32a85b596c1bfed2e714a6 (patch) | |
tree | d47ffb01d922fcba8cabab5c5e49c7fff6d144bf | |
parent | 1083f82d1ee0c8f15a66be15e6184294a69d4420 (diff) | |
download | jquery-8be9cd1ce71de8affa32a85b596c1bfed2e714a6.tar.gz jquery-8be9cd1ce71de8affa32a85b596c1bfed2e714a6.zip |
Add warnings and ignore the built Sizzle file.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | src/selector-native.js | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index 9868a5369..1040aefd4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +src/selector-sizzle.js src/selector.js dist .project diff --git a/src/selector-native.js b/src/selector-native.js index 11bf32507..289b35028 100644 --- a/src/selector-native.js +++ b/src/selector-native.js @@ -1,3 +1,28 @@ +/* + * Optional (non-Sizzle) selector module for custom builds. + * + * Note that this DOES NOT SUPPORT many documented jQuery + * features in exchange for its smaller size: + * + * Attribute not equal selector + * Positional selectors (:first; :eq(n); :odd; etc.) + * Type selectors (:input; :checkbox; :button; etc.) + * State-based selectors (:animated; :visible; :hidden; etc.) + * :has(selector) + * :not(complex selector) + * custom selectors via Sizzle extensions + * Leading combinators (e.g., $collection.find("> *")) + * Reliable functionality on XML fragments + * Requiring all parts of a selector to match elements under context + * (e.g., $div.find("div > *") now matches children of $div) + * Matching against non-elements + * Reliable sorting of disconnected nodes + * querySelectorAll bug fixes (e.g., unreliable :focus on WebKit) + * + * If any of these are unacceptable tradeoffs, either use Sizzle or + * customize this stub for the project's specific needs. + */ + var selector_hasDuplicate, matches = docElem.matchesSelector || docElem.mozMatchesSelector || |