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

SearchParams.set() should give an example of setting a current value #37594

Closed
baronyoung opened this issue Jan 10, 2025 · 1 comment
Closed
Labels
Content:WebAPI Web API docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@baronyoung
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/set

What specific section or headline is this issue about?

Examples

What information was incorrect, unhelpful, or incomplete?

The .set() method has a somewhat unhelpful and redundant example.

What did you expect to see?

The example given in this section is no different than, and more appropriate for, the .append() method. .set() should give an example of setting an existing value.

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

No response

Do you have anything more you want to share?

Obviously this isn't a glaring issue, but is I think below the typical high standard you have for the rest of the site.

MDN metadata

Page report details
@baronyoung baronyoung added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jan 10, 2025
@github-actions github-actions bot added the Content:WebAPI Web API docs label Jan 10, 2025
@baronyoung
Copy link
Author

I was mistaken. I now see the difference between the append() and .set() examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs 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