diff --git a/src/attributes.js b/src/attributes.js index 7868e08e..c34cd619 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -23,20 +23,6 @@ jQuery.fn.extend({ return jQuery.access( this, name, value, true, jQuery.prop ); }, - removeProp: function( name ) { - return this.each(function() { - // try/catch handles cases where IE balks (such as removing a property on window) - try { - this[ name ] = undefined; - delete this[ name ]; - } catch( e ) {} - }); - }, - - prop: function( name, value ) { - return jQuery.access( this, name, value, true, jQuery.prop ); - }, - removeProp: function( name ) { return this.each(function() { // try/catch handles cases where IE balks (such as removing a property on window) diff --git a/src/support.js b/src/support.js index 2d7bc7ca..34960505 100644 --- a/src/support.js +++ b/src/support.js @@ -19,7 +19,8 @@ jQuery.support = (function() { isSupported; // Preliminary tests - div.innerHTML = "
a"; + div.setAttribute("className", "t"); + div.innerHTML = "
a"; all = div.getElementsByTagName( "*" ); a = div.getElementsByTagName( "a" )[ 0 ]; @@ -48,7 +49,7 @@ jQuery.support = (function() { // Get the style information from getAttribute // (IE uses .cssText instead) - style: /red/.test( a.getAttribute("style") ), + style: /top/.test( a.getAttribute("style") ), // Make sure that URLs aren't manipulated // (IE normalizes it by default) diff --git a/test/unit/attributes.js b/test/unit/attributes.js index fa30ff04..f3f0bab2 100644 --- a/test/unit/attributes.js +++ b/test/unit/attributes.js @@ -127,10 +127,6 @@ test("attr(String)", function() { body.removeAttribute('foo'); // Cleanup - var select = document.createElement("select"), optgroup = document.createElement("optgroup"), option = document.createElement("option"); - optgroup.appendChild( option ); - select.appendChild( optgroup ); - var $img = jQuery('').appendTo('body'); equals( $img.attr('width'), "215", "Retrieve width attribute an an element with display:none." ); equals( $img.attr('height'), "53", "Retrieve height attribute an an element with display:none." );