IE10 img onerror works allways

115 views Asked by At

I test it in 3 browsers IE10, Chrome and Firefox. In Chrome and Firefox everyting works correctly but in IE doesn't

<img src="/url/method/'+Id+'" onerror="this.src="'+img_none+'" class="avatar"/>

if image exist Firefox and Chore show it, but IE10 show default image(onerror)

1

There are 1 answers

0
dabadi On

Try to remove onerror="this.src="'+img_none+'" and see what IE will show Will it show image? Probably error is in src