DEV Community

Discussion on: HTML fallback images on error

Collapse
 
wonderchuck profile image
Adam Stankus

Don't mean to be a buzzkill, but according to caniuse.com, the onerror attribute is deprecated.

Collapse
 
dailydevtips1 profile image
Chris Bongers

I don't think that's correct Adam.

I mean it does show there, but it seems someone made a mistake on MDN (which is where caniuse pulls the info from).

This is already refactored a long time ago, but caniuse seems off still.

github.com/mdn/sprints/issues/4014