aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2013-04-24 09:06:11 -0400
committerRichard Gibson <richard.gibson@gmail.com>2013-04-24 09:06:49 -0400
commit7723012e1118924171fc5b015a6e210712446eb7 (patch)
tree94fce1b871f6d27b4f573a92369ab124f193abf7
parentd605322c105f4edc37e9a6357af23c4cee53c2cc (diff)
downloadjquery-7723012e1118924171fc5b015a6e210712446eb7.tar.gz
jquery-7723012e1118924171fc5b015a6e210712446eb7.zip
Fix #13809: Avoid collisions with words reserved by any version of ECMA-262
(cherry picked from commit ad71f47b27f463c6952768c5ab2773ae15ffa745)
-rw-r--r--src/attributes.js6
m---------src/sizzle0
2 files changed, 3 insertions, 3 deletions
diff --git a/src/attributes.js b/src/attributes.js
index 3942b39e3..afafc8dca 100644
--- a/src/attributes.js
+++ b/src/attributes.js
@@ -315,7 +315,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 ) {
@@ -354,7 +354,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
if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) {
elem[ propName ] = false;
@@ -462,7 +462,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 ] = getSetInput && getSetAttribute || !ruseDefault.test( name ) ?
diff --git a/src/sizzle b/src/sizzle
-Subproject 84a24c9fea7c5cd0874c4ba61a1ef77e0b37e08
+Subproject b8789b87f1ecb00f0de82b2a13a3474dabdab40