]> source.dussan.org Git - jquery.git/commitdiff
Move attr hook for value to Sizzle.
authorTimmy Willison <timmywillisn@gmail.com>
Tue, 7 May 2013 19:22:58 +0000 (15:22 -0400)
committerTimmy Willison <timmywillisn@gmail.com>
Tue, 7 May 2013 19:22:58 +0000 (15:22 -0400)
Related: https://github.com/jquery/sizzle/issues/209

src/attributes.js
src/sizzle

index afafc8dca9b012b1d1fd81d8c2a635a8398d6b05..084ca0c6d70facc1120bed6880a152581fb974b1 100644 (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" ) ) {
index b8789b87f1ecb00f0de82b2a13a3474dabdab406..88a598b70da6acddbdbf695b605e03a77982b3d6 160000 (submodule)
@@ -1 +1 @@
-Subproject commit b8789b87f1ecb00f0de82b2a13a3474dabdab406
+Subproject commit 88a598b70da6acddbdbf695b605e03a77982b3d6