• timmywil's avatar
    #8150 - When removing the width and height attributes in IE6/7, setting to ""... · 3a1b4661
    timmywil authored
     #8150 - When removing the width and height attributes in IE6/7, setting to "" actually sets to 0 instead of auto
    
    - Having fixed this automatically with the use of removeAttribute in browsers that support it, this will fix it for IE6/7 as well.
    
    - This has no effect on width/height styles set elsewhere( test added to removeAttr )
    
    - With this addition, I need to call attr in removeAttr for IE6/7, which means boolean calls like .attr("checked", "") will no longer remove the attribute, which I think is fine.  .attr("checked", false) will still remove.  If I had left it, it would have gone in an infinite loop since setting to empty string is the only way to remove it in these browsers.
    
    - The hrefNormalized hooks were returning null if they weren't present.  Added the null check to the getter.
    
    - Now that the style support fails in IE8 as well due to uppercasing everything, no need to have style included with the hrefNormalized hooks
    3a1b4661
attributes.js 33.9 KB