aboutsummaryrefslogtreecommitdiffstats
path: root/src/selector.js
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2022-01-04 16:27:18 +0100
committerGitHub <noreply@github.com>2022-01-04 16:27:18 +0100
commit5d5ea015114092c157311c4948f7cc3d8c8e7f8a (patch)
tree11beae372fc202638e16358f84f696c1e71a08c3 /src/selector.js
parent655c0ed5e204b1f6427e09d615a49586a7bc84eb (diff)
downloadjquery-5d5ea015114092c157311c4948f7cc3d8c8e7f8a.tar.gz
jquery-5d5ea015114092c157311c4948f7cc3d8c8e7f8a.zip
Docs: Replace `#NUMBER` Trac issue references with `trac-NUMBER`
The GitHub UI treats `#NUMBER` as referring to its own issues which is confusing when in jQuery source it's usually referring to the old deprecated Trac instance at https://bugs.jquery.com. This change replaces all such Trac references with `trac-NUMBER`. A few of the references came with the Sizzle integration and referred to the Sizzle GitHub bug tracker. Those have been replaced with full links instead. A new entry describing issue reference conventions has been added to README. Closes gh-4993
Diffstat (limited to 'src/selector.js')
-rw-r--r--src/selector.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/selector.js b/src/selector.js
index 4b9c8b6ed..bc60e61e4 100644
--- a/src/selector.js
+++ b/src/selector.js
@@ -282,7 +282,8 @@ function createCache() {
function cache( key, value ) {
- // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
+ // Use (key + " ") to avoid collision with native prototype properties
+ // (see https://github.com/jquery/sizzle/issues/157)
if ( keys.push( key + " " ) > Expr.cacheLength ) {
// Only keep the most recent entries
@@ -432,7 +433,7 @@ function setDocument( node ) {
documentIsHTML = !jQuery.isXMLDoc( document );
// Support: IE 9 - 11+
- // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
+ // Accessing iframe documents after unload throws "permission denied" errors (see trac-13936)
// Support: IE 11+
// IE sometimes throws a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.
@@ -843,7 +844,8 @@ Expr = jQuery.expr = {
input[ 0 ] = elem;
matcher( input, null, xml, results );
- // Don't keep the element (issue #299)
+ // Don't keep the element
+ // (see https://github.com/jquery/sizzle/issues/299)
input[ 0 ] = null;
return !results.pop();
};
@@ -1348,7 +1350,8 @@ function matcherFromTokens( tokens ) {
matchContext( elem, context, xml ) :
matchAnyContext( elem, context, xml ) );
- // Avoid hanging onto element (issue #299)
+ // Avoid hanging onto element
+ // (see https://github.com/jquery/sizzle/issues/299)
checkContext = null;
return ret;
} ];