DOMException.code property is deprecated but being used in example without any warning. #18654
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.
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?
MDN metadata
Page report details
pt-br/web/api/web_storage_api/using_the_web_storage_api
The text was updated successfully, but these errors were encountered: