Skip to content

Commit 5430c54

Browse files
committed
Docs: Fix an incorrect comment in the attributes module
Attributes are no longer always treated as lowercase, although hooks for them are. This commit fixes a no longer correct comment.
1 parent f9ea869 commit 5430c54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/attributes/attr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jQuery.extend( {
3838
return jQuery.prop( elem, name, value );
3939
}
4040

41-
// All attributes are lowercase
41+
// Attribute hooks are determined by the lowercase version
4242
// Grab necessary hook if one is defined
4343
if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
4444
hooks = jQuery.attrHooks[ name.toLowerCase() ] ||

0 commit comments

Comments
 (0)