Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOMException.code property is deprecated but being used in example without any warning. #18654

Open
lex-sucena opened this issue Mar 13, 2024 · 0 comments
Labels
l10n-pt-br Issues related to Brazilian Portuguese needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@lex-sucena
Copy link

MDN URL

https://developer.mozilla.org/pt-BR/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API

What specific section or headline is this issue about?

Function that detects whether localStorage is both supported and available

What information was incorrect, unhelpful, or incomplete?

According to MDN, the DOMException property "code" is deprecated, but in the example on how to test for localStorage, the property is being used without any warning note.

What did you expect to see?

I don't know, but definitely didn't expect to see deprecated code being used normally without any warnings.

Do you have any supporting links, references, or citations?

Link to deprecated code: https://developer.mozilla.org/pt-BR/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API
Link to MDN saying that the property is deprecated: https://developer.mozilla.org/en-US/docs/Web/API/DOMException/code

Do you have anything more you want to share?

Deprecated code

MDN metadata

Page report details
@lex-sucena lex-sucena added l10n-pt-br Issues related to Brazilian Portuguese needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Mar 13, 2024
@lex-sucena lex-sucena changed the title Code Deprecated DOMException.code property is deprecated but being used in example without any warning. Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-pt-br Issues related to Brazilian Portuguese needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

No branches or pull requests

1 participant