🌐 AI搜索 & 代理 主页
Skip to content

Commit 6857680

Browse files
committed
Selector: 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. Ref jquerygh-4993
1 parent 0a4aebb commit 6857680

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/selector.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,8 @@ function createCache() {
306306

307307
function cache( key, value ) {
308308

309-
// Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
309+
// Use (key + " ") to avoid collision with native prototype properties
310+
// (see https://github.com/jquery/sizzle/issues/157)
310311
if ( keys.push( key + " " ) > Expr.cacheLength ) {
311312

312313
// Only keep the most recent entries
@@ -486,7 +487,7 @@ function setDocument( node ) {
486487
documentElement.msMatchesSelector;
487488

488489
// Support: IE 9 - 11+, Edge 12 - 18+
489-
// Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
490+
// Accessing iframe documents after unload throws "permission denied" errors (see trac-13936)
490491
// Support: IE 11+, Edge 17 - 18+
491492
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
492493
// two documents; shallow comparisons work.
@@ -749,7 +750,7 @@ find.attr = function( elem, name ) {
749750

750751
var fn = Expr.attrHandle[ name.toLowerCase() ],
751752

752-
// Don't get fooled by Object.prototype properties (jQuery #13807)
753+
// Don't get fooled by Object.prototype properties (see trac-13807)
753754
val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
754755
fn( elem, name, !documentIsHTML ) :
755756
undefined;
@@ -1141,7 +1142,8 @@ Expr = jQuery.expr = {
11411142
input[ 0 ] = elem;
11421143
matcher( input, null, xml, results );
11431144

1144-
// Don't keep the element (issue #299)
1145+
// Don't keep the element
1146+
// (see https://github.com/jquery/sizzle/issues/299)
11451147
input[ 0 ] = null;
11461148
return !results.pop();
11471149
};
@@ -1651,7 +1653,8 @@ function matcherFromTokens( tokens ) {
16511653
matchContext( elem, context, xml ) :
16521654
matchAnyContext( elem, context, xml ) );
16531655

1654-
// Avoid hanging onto element (issue #299)
1656+
// Avoid hanging onto element
1657+
// (see https://github.com/jquery/sizzle/issues/299)
16551658
checkContext = null;
16561659
return ret;
16571660
} ];

0 commit comments

Comments
 (0)