I am a full stack web and game developer. I am a husband and father. I enjoy music, games, reading, and podcasts.
Senior Software Engineer at Of Ash and Fire
Founder at Hexbit Studios
I had recently found this solution too, but I noticed that the onerror attribute for img is deprecated according to MDN. My understanding is that @error boils down to onerror.
I am a full stack web and game developer. I am a husband and father. I enjoy music, games, reading, and podcasts.
Senior Software Engineer at Of Ash and Fire
Founder at Hexbit Studios
I had recently found this solution too, but I noticed that the
onerror
attribute forimg
is deprecated according to MDN. My understanding is that@error
boils down toonerror
.Still looking for an alternative though.
@error worked fine for me. Let me know if I can help you to solve your problem.
Yeah we decided to go with this as it seems to work just fine and doesn't actually map directly to the
onerror
attribute. So all good it seems π