diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2013-04-24 09:06:11 -0400 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2013-04-24 09:06:11 -0400 |
commit | ad71f47b27f463c6952768c5ab2773ae15ffa745 (patch) | |
tree | 38b8209abedf3f9ccd9c4cecb83979752fc4813b /src/attributes.js | |
parent | d8f7e8371230a6dd504ca02e65442745b6ff6ce2 (diff) | |
download | jquery-ad71f47b27f463c6952768c5ab2773ae15ffa745.tar.gz jquery-ad71f47b27f463c6952768c5ab2773ae15ffa745.zip |
Fix #13809: Avoid collisions with words reserved by any version of ECMA-262
Diffstat (limited to 'src/attributes.js')
-rw-r--r-- | src/attributes.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/attributes.js b/src/attributes.js index 4aabcfc1b..6cefd52ac 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -305,7 +305,7 @@ jQuery.extend({ if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { name = name.toLowerCase(); hooks = jQuery.attrHooks[ name ] || - ( jQuery.expr.match.boolean.test( name ) ? boolHook : nodeHook ); + ( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook ); } if ( value !== undefined ) { @@ -344,7 +344,7 @@ jQuery.extend({ propName = jQuery.propFix[ name ] || name; // Boolean attributes get special treatment (#10870) - if ( jQuery.expr.match.boolean.test( name ) ) { + if ( jQuery.expr.match.bool.test( name ) ) { // Set corresponding property to false elem[ propName ] = false; } @@ -428,7 +428,7 @@ boolHook = { return name; } }; -jQuery.each( jQuery.expr.match.boolean.source.match( /\w+/g ), function( i, name ) { +jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { var getter = jQuery.expr.attrHandle[ name ] || jQuery.find.attr; jQuery.expr.attrHandle[ name ] = function( elem, name, isXML ) { |