{"action":"opened","issue":{"url":"https://api.github.com/repos/kraih/mojo/issues/926","repository_url":"https://api.github.com/repos/kraih/mojo","labels_url":"https://api.github.com/repos/kraih/mojo/issues/926/labels{/name}","comments_url":"https://api.github.com/repos/kraih/mojo/issues/926/comments","events_url":"https://api.github.com/repos/kraih/mojo/issues/926/events","html_url":"https://github.com/kraih/mojo/issues/926","id":138187809,"number":926,"title":"Mojo::DOM->val returns on for non-checkbox/radio buttons fields","user":{"login":"ksmadsen","id":1752256,"avatar_url":"https://avatars.githubusercontent.com/u/1752256?v=3","gravatar_id":"","url":"https://api.github.com/users/ksmadsen","html_url":"https://github.com/ksmadsen","followers_url":"https://api.github.com/users/ksmadsen/followers","following_url":"https://api.github.com/users/ksmadsen/following{/other_user}","gists_url":"https://api.github.com/users/ksmadsen/gists{/gist_id}","starred_url":"https://api.github.com/users/ksmadsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksmadsen/subscriptions","organizations_url":"https://api.github.com/users/ksmadsen/orgs","repos_url":"https://api.github.com/users/ksmadsen/repos","events_url":"https://api.github.com/users/ksmadsen/events{/privacy}","received_events_url":"https://api.github.com/users/ksmadsen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-03T14:09:52Z","updated_at":"2016-03-03T14:09:52Z","closed_at":null,"body":"With Mojolicious 6.50, Mojo::DOM now returns 'on' if a text-input field contains an empty value:\r\n\r\n```perl\r\nuse Mojo::DOM;\r\nmy $dom = Mojo::DOM->new(\"<input type=\\\"text\\\" value>\");\r\nsay $dom->at(\"input\")->val();\r\n```\r\n\r\nThe above will output \"on\", instead of the expected empty line."}}