{"issue":{"milestone":null,"user":{"id":27612,"login":"rhunter","url":"https://api.github.com/users/rhunter","avatar_url":"https://secure.gravatar.com/avatar/39e19e0acb0d2809f60f57cec9b50512?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"39e19e0acb0d2809f60f57cec9b50512"},"title":"HTML buttons with descendant images can be found by alt","created_at":"2011-12-19T05:55:17Z","updated_at":"2011-12-19T10:39:42Z","labels":[],"state":"open","id":2597147,"html_url":"https://github.com/jnicklas/xpath/issues/34","closed_at":null,"pull_request":{"patch_url":"https://github.com/jnicklas/xpath/pull/34.patch","html_url":"https://github.com/jnicklas/xpath/pull/34","diff_url":"https://github.com/jnicklas/xpath/pull/34.diff"},"body":"The following construct should now work:\r\n\r\n    <button><img alt=\"Submit\" src=\"submit.png\"></button>\r\n\r\nIt's a bit of a silly construct really, since `<input type=\"image\">` exists, but it came up in a real application I was testing.","number":34,"url":"https://api.github.com/repos/jnicklas/xpath/issues/34","comments":2,"assignee":null},"comment":{"user":{"id":27612,"login":"rhunter","url":"https://api.github.com/users/rhunter","avatar_url":"https://secure.gravatar.com/avatar/39e19e0acb0d2809f60f57cec9b50512?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"39e19e0acb0d2809f60f57cec9b50512"},"created_at":"2011-12-19T10:39:42Z","updated_at":"2011-12-19T10:39:42Z","id":3201640,"body":"I'm not going to push for it -- it's the first time the problem has\ncome up for me (although it did surprise me to find it missing).\n\nAdmittedly, I normally use Capybara/XPath in situations where I\ncontrol the markup and I almost never use a `<button>` tag, let alone\none with a nested image.\n\nI've been writing a lot of `find('img[alt=Search]').click` for this application!","url":"https://api.github.com/repos/jnicklas/xpath/issues/comments/3201640"},"action":"created"}