{"action":"created","issue":{"url":"https://api.github.com/repos/jimmywarting/FormData/issues/67","repository_url":"https://api.github.com/repos/jimmywarting/FormData","labels_url":"https://api.github.com/repos/jimmywarting/FormData/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/jimmywarting/FormData/issues/67/comments","events_url":"https://api.github.com/repos/jimmywarting/FormData/issues/67/events","html_url":"https://github.com/jimmywarting/FormData/pull/67","id":393090958,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwMjA1OTc1","number":67,"title":"fix linefeed handling for forms","user":{"login":"visualjerk","id":28823153,"node_id":"MDQ6VXNlcjI4ODIzMTUz","avatar_url":"https://avatars0.githubusercontent.com/u/28823153?v=4","gravatar_id":"","url":"https://api.github.com/users/visualjerk","html_url":"https://github.com/visualjerk","followers_url":"https://api.github.com/users/visualjerk/followers","following_url":"https://api.github.com/users/visualjerk/following{/other_user}","gists_url":"https://api.github.com/users/visualjerk/gists{/gist_id}","starred_url":"https://api.github.com/users/visualjerk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/visualjerk/subscriptions","organizations_url":"https://api.github.com/users/visualjerk/orgs","repos_url":"https://api.github.com/users/visualjerk/repos","events_url":"https://api.github.com/users/visualjerk/events{/privacy}","received_events_url":"https://api.github.com/users/visualjerk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-20T15:20:24Z","updated_at":"2018-12-20T18:18:39Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/jimmywarting/FormData/pulls/67","html_url":"https://github.com/jimmywarting/FormData/pull/67","diff_url":"https://github.com/jimmywarting/FormData/pull/67.diff","patch_url":"https://github.com/jimmywarting/FormData/pull/67.patch"},"body":"As the native FormData implementation converts linefeeds (LF) provided through user input to CRLF, the polyfill should do the same."},"comment":{"url":"https://api.github.com/repos/jimmywarting/FormData/issues/comments/449089515","html_url":"https://github.com/jimmywarting/FormData/pull/67#issuecomment-449089515","issue_url":"https://api.github.com/repos/jimmywarting/FormData/issues/67","id":449089515,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTA4OTUxNQ==","user":{"login":"visualjerk","id":28823153,"node_id":"MDQ6VXNlcjI4ODIzMTUz","avatar_url":"https://avatars0.githubusercontent.com/u/28823153?v=4","gravatar_id":"","url":"https://api.github.com/users/visualjerk","html_url":"https://github.com/visualjerk","followers_url":"https://api.github.com/users/visualjerk/followers","following_url":"https://api.github.com/users/visualjerk/following{/other_user}","gists_url":"https://api.github.com/users/visualjerk/gists{/gist_id}","starred_url":"https://api.github.com/users/visualjerk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/visualjerk/subscriptions","organizations_url":"https://api.github.com/users/visualjerk/orgs","repos_url":"https://api.github.com/users/visualjerk/repos","events_url":"https://api.github.com/users/visualjerk/events{/privacy}","received_events_url":"https://api.github.com/users/visualjerk/received_events","type":"User","site_admin":false},"created_at":"2018-12-20T18:18:39Z","updated_at":"2018-12-20T18:18:39Z","author_association":"NONE","body":"That is a pretty weird issue. I am pretty sure that it has to be done inside the constructor, because setting the value through append results in Chrome keeping the single linefeed:\r\n\r\n```js\r\nconst fd = new FormData()\r\nfd.append('key', '\\n')\r\nconsole.log('\\n' === fd.get('key')) // true in Chrome\r\n```\r\n\r\nThat said, we still need to figure out which behavior is actually expected, when a form element is passed to the FormData constructor.\r\n\r\nI try to find out more about this topic."}}
{"actor":{"display_login":"visualjerk"}}