return new jQuery.fn.init( selector, context );
},
- // A simple way to check for HTML strings or id strings
+ // A simple way to check for HTML strings or ID strings
// (both of which we optimize for)
quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,
// Is it a simple selector
}
// Handle HTML strings
if ( typeof selector === "string" ) {
- // Are we dealing with HTML string or an id?
+ // Are we dealing with HTML string or an ID?
var match = quickExpr.exec( selector );
// Verify a match, and that no context was specified for #id
var elem = document.getElementById( match[3] );
// Handle the case where IE and Opera return items
- // by name instead of id
+ // by name instead of ID
if ( elem && elem.id != match[3] )
return jQuery().find( selector );
\r
var id = elem[ expando ];\r
\r
- // Compute a unique id for the element\r
+ // Compute a unique ID for the element\r
if ( !id )\r
id = elem[ expando ] = ++uuid;\r
\r
if ( data !== undefined )\r
jQuery.cache[ id ][ name ] = data;\r
\r
- // Return the named cache data, or the id for the element\r
+ // Return the named cache data, or the ID for the element\r
return name ?\r
jQuery.cache[ id ][ name ] :\r
id;\r
if ( elem.setInterval && elem != window )
elem = window;
- // Make sure that the function being executed has a unique id
+ // Make sure that the function being executed has a unique ID
if ( !handler.guid )
handler.guid = this.guid++;