{"action":"closed","issue":{"url":"https://api.github.com/repos/zencart/zc-v1-series/issues/625","labels_url":"https://api.github.com/repos/zencart/zc-v1-series/issues/625/labels{/name}","comments_url":"https://api.github.com/repos/zencart/zc-v1-series/issues/625/comments","events_url":"https://api.github.com/repos/zencart/zc-v1-series/issues/625/events","html_url":"https://github.com/zencart/zc-v1-series/issues/625","id":112069194,"number":625,"title":"Code suggestion:  default use of html5 \"email\" data type","user":{"login":"bcsteeve","id":7412219,"avatar_url":"https://avatars.githubusercontent.com/u/7412219?v=3","gravatar_id":"","url":"https://api.github.com/users/bcsteeve","html_url":"https://github.com/bcsteeve","followers_url":"https://api.github.com/users/bcsteeve/followers","following_url":"https://api.github.com/users/bcsteeve/following{/other_user}","gists_url":"https://api.github.com/users/bcsteeve/gists{/gist_id}","starred_url":"https://api.github.com/users/bcsteeve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcsteeve/subscriptions","organizations_url":"https://api.github.com/users/bcsteeve/orgs","repos_url":"https://api.github.com/users/bcsteeve/repos","events_url":"https://api.github.com/users/bcsteeve/events{/privacy}","received_events_url":"https://api.github.com/users/bcsteeve/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zencart/zc-v1-series/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/zencart/zc-v1-series/labels/feature%20request","name":"feature request","color":"009800"},{"url":"https://api.github.com/repos/zencart/zc-v1-series/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"drbyte","id":404472,"avatar_url":"https://avatars.githubusercontent.com/u/404472?v=3","gravatar_id":"","url":"https://api.github.com/users/drbyte","html_url":"https://github.com/drbyte","followers_url":"https://api.github.com/users/drbyte/followers","following_url":"https://api.github.com/users/drbyte/following{/other_user}","gists_url":"https://api.github.com/users/drbyte/gists{/gist_id}","starred_url":"https://api.github.com/users/drbyte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drbyte/subscriptions","organizations_url":"https://api.github.com/users/drbyte/orgs","repos_url":"https://api.github.com/users/drbyte/repos","events_url":"https://api.github.com/users/drbyte/events{/privacy}","received_events_url":"https://api.github.com/users/drbyte/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-10-19T04:18:44Z","updated_at":"2015-12-29T21:24:15Z","closed_at":"2015-12-29T21:24:15Z","body":"This just came up as I was re-doing my template and had to edit half a dozen forms.\r\n\r\nWhen a user is asked to input an email address, the data type for that field should be \"email\" not \"text\".  It is a safe change because the default \"text\" input type will be the fall-back if the browser doesn't support the new data type ([source](http://www.wufoo.com/html5/types/1-email.html)).\r\n\r\nThe advantage is a user with a iPhone or Android will have their keyboard default to showing @ and . symbols instead of having to switch keyboard layouts.\r\n\r\nSimple change to make.  Anywhere we have:\r\n\r\nzen_draw_input_field('email_address' [...]\r\n\r\nthe 4th parameter, which seems to be blank (and defaulting to \"text\" in the function), needs to simply be \"email\".\r\n\r\nAlternatively, and perhaps better, would be some logic in the zen_draw_input_field to recognize (based on first parameter) if an email address is being specified, and then automatically apply the \"email\" type instead of \"text\" unless, of course, \"text\" is explicitly stated."}}