Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix #13809: Avoid collisions with words reserved by any version of EC…
…MA-262
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ) { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
rwaldron
Member
|
||
var getter = jQuery.expr.attrHandle[ name ] || jQuery.find.attr; | ||
|
||
jQuery.expr.attrHandle[ name ] = function( elem, name, isXML ) { | ||
Submodule sizzle
updated
4 files
+2 −2 | dist/sizzle.js | |
+1 −1 | dist/sizzle.min.js | |
+1 −1 | dist/sizzle.min.map | |
+1 −1 | sizzle.js |
I just updated and am doing a custom build. jQuery.expr.match.bool seems to be undefined. This is my build command: grunt custom:-effects,-deprecated,-event-alias,-dimensions,-wrap,-sizzle