jQuery.each({
removeAttr: function( name ) {
- jQuery.attr( this, name, "" );
- if (this.nodeType == 1) {
+ if ( this.nodeType === 1 ) {
+ this[ jQuery.isXMLDoc( this ) ? name : jQuery.props[ name ] || name ] = null;
this.removeAttribute( name );
}
},
data: true,
width: true,
height: true,
- offset: true
+ offset: true,
+ bind: true
},
attr: function( elem, name, value ) {