Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

img onerror is deprecated? #4014

Closed
1 of 2 tasks
dartess opened this issue Nov 15, 2021 · 6 comments
Closed
1 of 2 tasks

img onerror is deprecated? #4014

dartess opened this issue Nov 15, 2021 · 6 comments
Labels
Content:HTML This is related to HTML content

Comments

@dartess
Copy link

dartess commented Nov 15, 2021

URL(s)

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

Request type

  • New documentation
  • 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 dartess added the Content:HTML This is related to HTML content label Nov 15, 2021
@hamishwillee
Copy link
Collaborator

@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 mdn/browser-compat-data#388

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

@ZaneCEO
Copy link

ZaneCEO commented Oct 12, 2023

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

@ferdnyc
Copy link

ferdnyc commented Jan 2, 2024

@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
Copy link

ferdnyc commented Jan 2, 2024

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

@dipikabh
Copy link

dipikabh commented Jan 2, 2024

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

@dipikabh dipikabh closed this as completed Jan 2, 2024
@dartess
Copy link
Author

dartess commented Jan 3, 2024

@ferdnyc better late than never :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Content:HTML This is related to HTML content
Projects
None yet
Development

No branches or pull requests

5 participants