Skip to content

Commit 8be9cd1

Browse files
committed
Add warnings and ignore the built Sizzle file.
1 parent 1083f82 commit 8be9cd1

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
src/selector-sizzle.js
12
src/selector.js
23
dist
34
.project

src/selector-native.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
/*
2+
* Optional (non-Sizzle) selector module for custom builds.
3+
*
4+
* Note that this DOES NOT SUPPORT many documented jQuery
5+
* features in exchange for its smaller size:
6+
*
7+
* Attribute not equal selector
8+
* Positional selectors (:first; :eq(n); :odd; etc.)
9+
* Type selectors (:input; :checkbox; :button; etc.)
10+
* State-based selectors (:animated; :visible; :hidden; etc.)
11+
* :has(selector)
12+
* :not(complex selector)
13+
* custom selectors via Sizzle extensions
14+
* Leading combinators (e.g., $collection.find("> *"))
15+
* Reliable functionality on XML fragments
16+
* Requiring all parts of a selector to match elements under context
17+
* (e.g., $div.find("div > *") now matches children of $div)
18+
* Matching against non-elements
19+
* Reliable sorting of disconnected nodes
20+
* querySelectorAll bug fixes (e.g., unreliable :focus on WebKit)
21+
*
22+
* If any of these are unacceptable tradeoffs, either use Sizzle or
23+
* customize this stub for the project's specific needs.
24+
*/
25+
126
var selector_hasDuplicate,
227
matches = docElem.matchesSelector ||
328
docElem.mozMatchesSelector ||

0 commit comments

Comments
 (0)