From e0df650136bdbd77aebc424f5cee403d93e5210d Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Tue, 7 May 2013 15:22:58 -0400 Subject: [PATCH] Move attr hook for value to Sizzle. Related: https://github.com/jquery/sizzle/issues/209 --- src/attributes.js | 8 -------- src/sizzle | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/attributes.js b/src/attributes.js index afafc8dca..084ca0c6d 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -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" ) ) { diff --git a/src/sizzle b/src/sizzle index b8789b87f..88a598b70 160000 --- a/src/sizzle +++ b/src/sizzle @@ -1 +1 @@ -Subproject commit b8789b87f1ecb00f0de82b2a13a3474dabdab406 +Subproject commit 88a598b70da6acddbdbf695b605e03a77982b3d6 -- 2.39.5