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

“Using the Web Storage API” has deprecated “DOMException.code” in example #21910

Open
Lovor01 opened this issue Oct 28, 2022 · 1 comment
Labels
Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help!

Comments

@Lovor01
Copy link

Lovor01 commented Oct 28, 2022

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API

What specific section or headline is this issue about?

Testing for availability

What information was incorrect, unhelpful, or incomplete?

Using DOMException.code in javascript example for testing of storage availability is deprecated

What did you expect to see?

I expect up-to-date code

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

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@github-actions github-actions bot added Content:WebAPI Web API docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Oct 28, 2022
@sideshowbarker sideshowbarker added help wanted If you know something about this topic, we would love your help! and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Oct 28, 2022
@sideshowbarker sideshowbarker changed the title Deprecated code “Using the Web Storage API” has deprecated “DOMException.code” in example Nov 7, 2022
@himanshugarg
Copy link
Contributor

himanshugarg commented Nov 9, 2023

Note for later/others. The revised code works as expected in Firefox. However, for a complete fix for this issue, further revisions might be needed for Chrome. The function returns true even when the storage is full.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help!
Projects
None yet
Development

No branches or pull requests

3 participants