{"action":"created","issue":{"url":"https://api.github.com/repos/alphagov/govuk_elements/issues/99","labels_url":"https://api.github.com/repos/alphagov/govuk_elements/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/alphagov/govuk_elements/issues/99/comments","events_url":"https://api.github.com/repos/alphagov/govuk_elements/issues/99/events","html_url":"https://github.com/alphagov/govuk_elements/pull/99","id":104694110,"number":99,"title":"Add attributes to snippets","user":{"login":"alextea","id":523014,"avatar_url":"https://avatars.githubusercontent.com/u/523014?v=3","gravatar_id":"","url":"https://api.github.com/users/alextea","html_url":"https://github.com/alextea","followers_url":"https://api.github.com/users/alextea/followers","following_url":"https://api.github.com/users/alextea/following{/other_user}","gists_url":"https://api.github.com/users/alextea/gists{/gist_id}","starred_url":"https://api.github.com/users/alextea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alextea/subscriptions","organizations_url":"https://api.github.com/users/alextea/orgs","repos_url":"https://api.github.com/users/alextea/repos","events_url":"https://api.github.com/users/alextea/events{/privacy}","received_events_url":"https://api.github.com/users/alextea/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-03T13:31:19Z","updated_at":"2015-09-08T14:58:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/alphagov/govuk_elements/pulls/99","html_url":"https://github.com/alphagov/govuk_elements/pull/99","diff_url":"https://github.com/alphagov/govuk_elements/pull/99.diff","patch_url":"https://github.com/alphagov/govuk_elements/pull/99.patch"},"body":"In order for the inputs to function in code, they must have the `name` attribute. I've added this so that people copying the snippets don't have to add any extra code.\n\nFor inputs in a series (checkboxes) I've used the `variable[]` naming convention from PHP, but I don't know if that works in Node/Express."},"comment":{"url":"https://api.github.com/repos/alphagov/govuk_elements/issues/comments/138592652","html_url":"https://github.com/alphagov/govuk_elements/pull/99#issuecomment-138592652","issue_url":"https://api.github.com/repos/alphagov/govuk_elements/issues/99","id":138592652,"user":{"login":"gemmaleigh","id":417754,"avatar_url":"https://avatars.githubusercontent.com/u/417754?v=3","gravatar_id":"","url":"https://api.github.com/users/gemmaleigh","html_url":"https://github.com/gemmaleigh","followers_url":"https://api.github.com/users/gemmaleigh/followers","following_url":"https://api.github.com/users/gemmaleigh/following{/other_user}","gists_url":"https://api.github.com/users/gemmaleigh/gists{/gist_id}","starred_url":"https://api.github.com/users/gemmaleigh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemmaleigh/subscriptions","organizations_url":"https://api.github.com/users/gemmaleigh/orgs","repos_url":"https://api.github.com/users/gemmaleigh/repos","events_url":"https://api.github.com/users/gemmaleigh/events{/privacy}","received_events_url":"https://api.github.com/users/gemmaleigh/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T14:58:30Z","updated_at":"2015-09-08T14:58:30Z","body":"Since `<button>` is buggy in earlier versions of IE (especially if the form has more than one button) and there's no requirement for other content (e.g. icons or decoration inside the element) - it's probably best just to go with `<input type=\"button\" value=\"Continue\">` - [this is what's used in the examples here](http://govuk-elements.herokuapp.com/errors/example-form-validation-single-question-radio). \r\n\r\nI'll update the button snippet."}}