javascript - jquery giving "invalid property value" error in Internet Explorer11 -


        //jquery 2.1.0 code line no 7026 onward    if ( value !== undefined ) {                     return hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ?                         ret :                         ( elem[ name ] = value );  //here getting invalid property                value error                  } else {                     return hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ?                         ret :                         elem[ name ];                 } 

and when made changes in jquery code this

 if ( value !== undefined ) {                 if ( value === null ) {                         jquery.removeattr( elem, name );                      } else if ( hooks && notxml && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {                         return ret;                      } else {                         elem.setattribute( name, value + "" );                         return value;                     }                  } else if ( hooks && notxml && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {                     return ret;                   } else {                     ret = elem.getattribute( name );                      // non-existent attributes return null, normalize undefined                     return ret == null ?                         undefined :                         ret;                 } 

then working fine changes in jquery library not recommended there other solution ? can override jquery method if yes how can override?


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -