I have the following code and in IE7 alone the browser crashes , this is some legacy code. Finally i tried various debugging by making alert statements and found that problem is at line $(this).removeAttr('myCustomattr');
I want to know why this is started breaking after i upgrade from jquery1.3.1 to jquery1.5.1 The remove attr is working fine in all other browsers except IE7.
May i know wha开发者_如何学JAVAt is real issue with this removeAttr with latest jquery.
If i switch to jquery1.3.1 , it started working again.
removeAttr is throwing error , if i comment that it works
$('#myImgagesDiv img').each(function () {
if ($(this).attr('myCustomattr')) {
$(this).attr('src', $(this).attr('myCustomattr'));
$(this).removeAttr('myCustomattr'); // code creating problem
};
});
精彩评论