So i have an img html tag with an onerror event, something like this:
<img src="http://hello/someImghere.png" onerror="this.src='error.jpg'" />
This works fine in browser but when it gets rendered to outlook and the onerror event gets triggered, the image gets broken and it doesnt change its source because its missing a ' at the end. (This issue only happens when onerror event gets triggered)
Any ideas? i have tried to debug but everything is correct and the html is not missing any character/wrong formatted :( this might an enconding problem perhaps?
Could it be because emails do not support javascript according to this (Is JavaScript supported in an email message?) but why does the html works on chrome when i copy it but also not on IE? :/
EDIT: My question is specifically about onerror event and a single character missing on the html itself, making the img broken.