{"action":"created","issue":{"url":"https://api.github.com/repos/beefproject/beef/issues/1117","labels_url":"https://api.github.com/repos/beefproject/beef/issues/1117/labels{/name}","comments_url":"https://api.github.com/repos/beefproject/beef/issues/1117/comments","events_url":"https://api.github.com/repos/beefproject/beef/issues/1117/events","html_url":"https://github.com/beefproject/beef/issues/1117","id":75301663,"number":1117,"title":"createIframeXsrfForm() fails when form input is named 'submit'","user":{"login":"bcoles","id":434827,"avatar_url":"https://avatars.githubusercontent.com/u/434827?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoles","html_url":"https://github.com/bcoles","followers_url":"https://api.github.com/users/bcoles/followers","following_url":"https://api.github.com/users/bcoles/following{/other_user}","gists_url":"https://api.github.com/users/bcoles/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoles/subscriptions","organizations_url":"https://api.github.com/users/bcoles/orgs","repos_url":"https://api.github.com/users/bcoles/repos","events_url":"https://api.github.com/users/bcoles/events{/privacy}","received_events_url":"https://api.github.com/users/bcoles/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-11T17:40:53Z","updated_at":"2015-08-04T14:32:52Z","closed_at":null,"body":"The function `beef.dom.createIframeXsrfForm` fails when form input is named 'submit', for example:\r\n\r\n`{'type':'hidden', 'name':'submit', 'value':'Run' }`\r\n\r\nIf a form input field is named `submit` in a call to `createIframeXsrfForm` the input field overrides `form.submit()` preventing submission of the form:\r\n\r\n`formXsrf.submit is not a function`\r\n\r\nNote: 'Submit' with a capital 'S' works fine.\r\n\r\nSee:\r\n* https://stackoverflow.com/questions/3571328/form-submit-button-will-not-submit-when-name-of-button-is-submit\r\n* https://stackoverflow.com/questions/8729319/how-send-a-form-with-javascript-when-input-name-is-submit\r\n"},"comment":{"url":"https://api.github.com/repos/beefproject/beef/issues/comments/127633645","html_url":"https://github.com/beefproject/beef/issues/1117#issuecomment-127633645","issue_url":"https://api.github.com/repos/beefproject/beef/issues/1117","id":127633645,"user":{"login":"antisnatchor","id":910293,"avatar_url":"https://avatars.githubusercontent.com/u/910293?v=3","gravatar_id":"","url":"https://api.github.com/users/antisnatchor","html_url":"https://github.com/antisnatchor","followers_url":"https://api.github.com/users/antisnatchor/followers","following_url":"https://api.github.com/users/antisnatchor/following{/other_user}","gists_url":"https://api.github.com/users/antisnatchor/gists{/gist_id}","starred_url":"https://api.github.com/users/antisnatchor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antisnatchor/subscriptions","organizations_url":"https://api.github.com/users/antisnatchor/orgs","repos_url":"https://api.github.com/users/antisnatchor/repos","events_url":"https://api.github.com/users/antisnatchor/events{/privacy}","received_events_url":"https://api.github.com/users/antisnatchor/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T14:32:52Z","updated_at":"2015-08-04T14:32:52Z","body":"You keen to have a look into this mate? "}}