mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Move attr hook for value to Sizzle.
Related: https://github.com/jquery/sizzle/issues/209
This commit is contained in:
parent
c57ca9e5a5
commit
e0df650136
@ -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
|
Loading…
Reference in New Issue
Block a user