mdn / sprints

Archived: MDN Web Docs issues are tracked in the content repository.
https://github.com/mdn/content
Creative Commons Zero v1.0 Universal
151 stars 144 forks source link

img onerror is deprecated? #4014

Closed dartess closed 7 months ago

dartess commented 2 years ago

URL(s)

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

Request type

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.

hamishwillee commented 2 years ago

@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

ZaneCEO commented 10 months ago

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

ferdnyc commented 7 months ago

@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 commented 7 months ago

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

dipikabh commented 7 months ago

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

dartess commented 7 months ago

@ferdnyc better late than never :)