Skip to content

Conversation

@lovelydinosaur
Copy link
Contributor

Closes #4959.

@lovelydinosaur lovelydinosaur added this to the 3.6.2 Release milestone Mar 10, 2017
@xordoquy
Copy link
Contributor

👍 fixes my issue on Safari.

@lovelydinosaur lovelydinosaur merged commit 7a8fb26 into master Mar 10, 2017
@lovelydinosaur lovelydinosaur deleted the safari-api-docs-support branch March 10, 2017 12:07
const formData = new FormData(form.get()[0]);
for (var [paramKey, paramValue] of formData.entries()) {
const entries = formEntries(form.get()[0]);
for (var [paramKey, paramValue] of entries) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted 👍 - Any suggestions on how best to re-write this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like:

for (var i = 0; i < entries.length; i++) {
  var entry = entries[i],
      paramKey = entry[0],
      paramValue = entry[1];
      ...
}

I think we should probably also drop const and Array.from.


var entries = []

for (var {name, type, value, files, checked, selectedOptions} of Array.from(form.elements)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jpadilla jpadilla mentioned this pull request Mar 18, 2017
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants