{"action":"opened","issue":{"url":"https://api.github.com/repos/phalcon/cphalcon/issues/10980","labels_url":"https://api.github.com/repos/phalcon/cphalcon/issues/10980/labels{/name}","comments_url":"https://api.github.com/repos/phalcon/cphalcon/issues/10980/comments","events_url":"https://api.github.com/repos/phalcon/cphalcon/issues/10980/events","html_url":"https://github.com/phalcon/cphalcon/issues/10980","id":108453039,"number":10980,"title":"Allow Select options to have no value attribute set","user":{"login":"renskii","id":4991301,"avatar_url":"https://avatars.githubusercontent.com/u/4991301?v=3","gravatar_id":"","url":"https://api.github.com/users/renskii","html_url":"https://github.com/renskii","followers_url":"https://api.github.com/users/renskii/followers","following_url":"https://api.github.com/users/renskii/following{/other_user}","gists_url":"https://api.github.com/users/renskii/gists{/gist_id}","starred_url":"https://api.github.com/users/renskii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renskii/subscriptions","organizations_url":"https://api.github.com/users/renskii/orgs","repos_url":"https://api.github.com/users/renskii/repos","events_url":"https://api.github.com/users/renskii/events{/privacy}","received_events_url":"https://api.github.com/users/renskii/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-26T09:54:41Z","updated_at":"2015-09-26T09:54:41Z","closed_at":null,"body":"Unless I'm missing something, it seems impossible to generate a Select with options without the *value* attribute set.\r\nThis is handy e.g. when creating a year-range select. No value attribute is needed then, the displayed year is suitable as value also. Currently, for such a select, I need to create an array with proper keys, but simply an array with values should suffice here (if I feed it such an array, my values will indeed be array keys, starting with `0`).\r\n\r\nAccording to the HTML spec the `value` attribute is optional, if it's absent, than the option's **text** will/must be used as value.\r\n\r\nRelevant link: https://html.spec.whatwg.org/multipage/forms.html#the-option-element\r\nRelevant text/quote:\r\n> The value attribute provides a value for element. The value of an option element is the value of the value content attribute, if there is one, or, if there is not, the value of the element's text IDL attribute. "}}