sprints icon indicating copy to clipboard operation
sprints copied to clipboard

img onerror is deprecated?

Open dartess opened this issue 4 years ago • 1 comments

URL(s)

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Img

Request type

  • [ ] New documentation
  • [x] Correction or update

Details

The onerror attribute is marked as deprecated. However, I don't understand why.

Image loading errors sections does not contain any notes about it. Internet searches also came to nothing. This is confusing.

dartess avatar Nov 15 '21 07:11 dartess

@teoli2003 as per https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Img#browser_compatibility the onerror is marked as deprecated for the img element - can you answer why? I'm asking you because you added this data in https://github.com/mdn/browser-compat-data/pull/388

It is also shown as deprecated in caniuse but that could just be a data copy from MDN

hamishwillee avatar Nov 16 '21 02:11 hamishwillee

Also discussed here: https://stackoverflow.com/a/77278205/1204976

ZaneCEO avatar Oct 12 '23 06:10 ZaneCEO

@dartess

My PR to remove the deprecation flag from onerror was just merged, this can (finally!) be closed. Our long national global nightmare is over.

ferdnyc avatar Jan 02 '24 14:01 ferdnyc

(And in fact, the MDN <img> page is already updated!)

ferdnyc avatar Jan 02 '24 19:01 ferdnyc

Thanks, @ferdnyc for your contribution and persistence to get this fixed. Closing this one because the related browser-compact-data PR is merged.

dipikabh avatar Jan 02 '24 21:01 dipikabh

@ferdnyc better late than never :)

dartess avatar Jan 03 '24 11:01 dartess