Skip to content

Commit fa772cc

Browse files
committed
Selector: Update some selector-native comments
1 parent fb8b6d3 commit fa772cc

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

src/selector-native.js

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,29 @@ define( [
1313
"use strict";
1414

1515
/*
16-
* Optional (non-Sizzle) selector module for custom builds.
16+
* Optional limited selector module for custom builds.
1717
*
1818
* Note that this DOES NOT SUPPORT many documented jQuery
1919
* features in exchange for its smaller size:
2020
*
21-
* Attribute not equal selector
22-
* Positional selectors (:first; :eq(n); :odd; etc.)
23-
* Type selectors (:input; :checkbox; :button; etc.)
24-
* State-based selectors (:animated; :visible; :hidden; etc.)
25-
* :has(selector)
26-
* :not(complex selector)
27-
* custom selectors via Sizzle extensions
28-
* Leading combinators (e.g., $collection.find("> *"))
29-
* Reliable functionality on XML fragments
30-
* Requiring all parts of a selector to match elements under context
31-
* (e.g., $div.find("div > *") now matches children of $div)
32-
* Matching against non-elements
33-
* Reliable sorting of disconnected nodes
34-
* querySelectorAll bug fixes (e.g., unreliable :focus on WebKit)
21+
* * Attribute not equal selector (!=)
22+
* * Positional selectors (:first; :eq(n); :odd; etc.)
23+
* * Type selectors (:input; :checkbox; :button; etc.)
24+
* * State-based selectors (:animated; :visible; :hidden; etc.)
25+
* * :has(selector)
26+
* * :not(complex selector)
27+
* * custom selectors via jQuery extensions
28+
* * Leading combinators (e.g., $collection.find("> *"))
29+
* * Reliable functionality on XML fragments
30+
* * Requiring all parts of a selector to match elements under context
31+
* (e.g., $div.find("div > *") now matches children of $div)
32+
* * Matching against non-elements
33+
* * Reliable sorting of disconnected nodes
34+
* * querySelectorAll bug fixes (e.g., unreliable :focus on WebKit)
3535
*
36-
* If any of these are unacceptable tradeoffs, either use Sizzle or
37-
* customize this stub for the project's specific needs.
36+
* If any of these are unacceptable tradeoffs, either use the full
37+
* selector engine or customize this stub for the project's specific
38+
* needs.
3839
*/
3940

4041
var hasDuplicate, sortInput,
@@ -131,7 +132,7 @@ jQuery.extend( {
131132
results = results || [];
132133
context = context || document;
133134

134-
// Same basic safeguard as Sizzle
135+
// Same basic safeguard as in the full selector module
135136
if ( !selector || typeof selector !== "string" ) {
136137
return results;
137138
}

0 commit comments

Comments
 (0)