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

Strange compatibility between the forEach method and the delete method of the FormData interface #36943

Closed
hiep1312 opened this issue Nov 24, 2024 · 0 comments
Labels
Content:WebAPI Web API docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@hiep1312
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/FormData/delete

What specific section or headline is this issue about?

I discovered a strange compatibility issue between the forEach method and the delete method of the FormData interface

What information was incorrect, unhelpful, or incomplete?

No

What did you expect to see?

I tried to delete an item in FormData if it was empty, but strangely, if I didn't use the delete method inside forEach, it could iterate through all the empty items. However, if I used the delete method within forEach, it failed to iterate through all the empty items.
Screenshot 2024-11-24 144124
Screenshot 2024-11-24 144036

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
@hiep1312 hiep1312 added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Nov 24, 2024
@github-actions github-actions bot added the Content:WebAPI Web API docs label Nov 24, 2024
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