Move attr hook for value to Sizzle.

Related: https://github.com/jquery/sizzle/issues/209
This commit is contained in:
Timmy Willison 2013-05-07 15:22:58 -04:00
parent c57ca9e5a5
commit e0df650136
2 changed files with 1 additions and 9 deletions

View File

@ -490,14 +490,6 @@ jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name )
// fix oldIE attroperties
if ( !getSetInput || !getSetAttribute ) {
jQuery.expr.attrHandle.value = function( elem, name, isXML ) {
var ret;
return isXML ? undefined :
// Ignore the value *property* on inputs by using defaultValue
jQuery.nodeName( elem, "input" ) ? elem.defaultValue :
// Retrieve the attribute
(ret = elem.getAttributeNode( name )) && ret.specified ? ret.value : undefined;
};
jQuery.attrHooks.value = {
set: function( elem, value, name ) {
if ( jQuery.nodeName( elem, "input" ) ) {

@ -1 +1 @@
Subproject commit b8789b87f1ecb00f0de82b2a13a3474dabdab406
Subproject commit 88a598b70da6acddbdbf695b605e03a77982b3d6