{"action":"created","issue":{"url":"https://api.github.com/repos/igorapa/form-storage/issues/2","labels_url":"https://api.github.com/repos/igorapa/form-storage/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/igorapa/form-storage/issues/2/comments","events_url":"https://api.github.com/repos/igorapa/form-storage/issues/2/events","html_url":"https://github.com/igorapa/form-storage/issues/2","id":95878358,"number":2,"title":"Get fields by name","user":{"login":"mauriciosoares","id":2321259,"avatar_url":"https://avatars.githubusercontent.com/u/2321259?v=3","gravatar_id":"","url":"https://api.github.com/users/mauriciosoares","html_url":"https://github.com/mauriciosoares","followers_url":"https://api.github.com/users/mauriciosoares/followers","following_url":"https://api.github.com/users/mauriciosoares/following{/other_user}","gists_url":"https://api.github.com/users/mauriciosoares/gists{/gist_id}","starred_url":"https://api.github.com/users/mauriciosoares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauriciosoares/subscriptions","organizations_url":"https://api.github.com/users/mauriciosoares/orgs","repos_url":"https://api.github.com/users/mauriciosoares/repos","events_url":"https://api.github.com/users/mauriciosoares/events{/privacy}","received_events_url":"https://api.github.com/users/mauriciosoares/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-19T02:36:46Z","updated_at":"2015-07-26T16:40:09Z","closed_at":null,"body":"Hey, it's me again...\r\n\r\nYou could track down all fields in the form if they have the `name` attribute...\r\n\r\nSince we have some inconsistency in forms fields (like `input`, `select`, `textarea`), at least we know that all form fields *should* have the `name` attribute.\r\n\r\nmaybe something like this:\r\n\r\n```javascript\r\nthis.inputs = this.form.querySelectorAll('[name]');\r\n```"},"comment":{"url":"https://api.github.com/repos/igorapa/form-storage/issues/comments/125015089","html_url":"https://github.com/igorapa/form-storage/issues/2#issuecomment-125015089","issue_url":"https://api.github.com/repos/igorapa/form-storage/issues/2","id":125015089,"user":{"login":"mauriciosoares","id":2321259,"avatar_url":"https://avatars.githubusercontent.com/u/2321259?v=3","gravatar_id":"","url":"https://api.github.com/users/mauriciosoares","html_url":"https://github.com/mauriciosoares","followers_url":"https://api.github.com/users/mauriciosoares/followers","following_url":"https://api.github.com/users/mauriciosoares/following{/other_user}","gists_url":"https://api.github.com/users/mauriciosoares/gists{/gist_id}","starred_url":"https://api.github.com/users/mauriciosoares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauriciosoares/subscriptions","organizations_url":"https://api.github.com/users/mauriciosoares/orgs","repos_url":"https://api.github.com/users/mauriciosoares/repos","events_url":"https://api.github.com/users/mauriciosoares/events{/privacy}","received_events_url":"https://api.github.com/users/mauriciosoares/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T16:40:09Z","updated_at":"2015-07-26T16:40:09Z","body":"Also, before you save the data in the localStorage, you could check if the element is visible...\r\n\r\nThere's a bunch of `hidden` input fields that I don't think they shouldn't be stored in the localStorage... what you think?"}}