mirror of
https://github.com/jquery/jquery.git
synced 2026-01-24 09:08:04 -05:00
Move attr hook for value to Sizzle.
Related: https://github.com/jquery/sizzle/issues/209
This commit is contained in:
@@ -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" ) ) {
|
||||
|
||||
Submodule src/sizzle updated: b8789b87f1...88a598b70d
Reference in New Issue
Block a user