My source is generated with obvious error in setting align and margin attribute at img element. So my html src is
<p><img left margin: 5px;" src="http://techtools4biz.com/wp-content/uploads/2011/06/Google-logo-300x242-150x150.jpg" alt="" /></p>
ofcourse it should be <img align="left" margin=".." src="..." />
In my previous question someone recommended to use find left element which and to replace him with align left property like this
$('img'.attr("left")){
$(this).removeAttr('left');
$(this).attr("align","left");
};
Tried and it doesn't work, any suggestions?
here's the link http://jsfiddle.net/GJRmB/