{"action":"created","issue":{"url":"https://api.github.com/repos/hoplon/hoplon/issues/76","labels_url":"https://api.github.com/repos/hoplon/hoplon/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/hoplon/hoplon/issues/76/comments","events_url":"https://api.github.com/repos/hoplon/hoplon/issues/76/events","html_url":"https://github.com/hoplon/hoplon/issues/76","id":116558007,"number":76,"title":"Get element attribute via map-like keyword lookup","user":{"login":"bsima","id":200617,"avatar_url":"https://avatars.githubusercontent.com/u/200617?v=3","gravatar_id":"","url":"https://api.github.com/users/bsima","html_url":"https://github.com/bsima","followers_url":"https://api.github.com/users/bsima/followers","following_url":"https://api.github.com/users/bsima/following{/other_user}","gists_url":"https://api.github.com/users/bsima/gists{/gist_id}","starred_url":"https://api.github.com/users/bsima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsima/subscriptions","organizations_url":"https://api.github.com/users/bsima/orgs","repos_url":"https://api.github.com/users/bsima/repos","events_url":"https://api.github.com/users/bsima/events{/privacy}","received_events_url":"https://api.github.com/users/bsima/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-11-12T14:25:19Z","updated_at":"2015-11-13T11:52:09Z","closed_at":null,"body":"Originally [proposed on slack](https://clojurians.slack.com/archives/hoplon/p1447334426000029) by @thedavidmeister. I'm attaching a screenshot in case slack deletes our archive :imp: \r\n\r\n![snapshot1](https://cloud.githubusercontent.com/assets/200617/11120520/4dcfc606-891e-11e5-9be3-2674102960f6.png)\r\n\r\nI think all this would take is implementing [IMapEntry](https://github.com/clojure/clojurescript/blob/master/src/main/cljs/cljs/core.cljs#L527-L532) on [js/Element here](https://github.com/hoplon/hoplon/blob/master/src/hoplon/core.cljs#L263-L297).\r\n\r\nThen you could do something like the following:\r\n\r\n```clojure\r\n(def el (a :href \"http://www.example.com\" \"Link to example\"))\r\n\r\n(:href el) ;;#=> \"www.example.com\"\r\n```"},"comment":{"url":"https://api.github.com/repos/hoplon/hoplon/issues/comments/156409452","html_url":"https://github.com/hoplon/hoplon/issues/76#issuecomment-156409452","issue_url":"https://api.github.com/repos/hoplon/hoplon/issues/76","id":156409452,"user":{"login":"thedavidmeister","id":629710,"avatar_url":"https://avatars.githubusercontent.com/u/629710?v=3","gravatar_id":"","url":"https://api.github.com/users/thedavidmeister","html_url":"https://github.com/thedavidmeister","followers_url":"https://api.github.com/users/thedavidmeister/followers","following_url":"https://api.github.com/users/thedavidmeister/following{/other_user}","gists_url":"https://api.github.com/users/thedavidmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/thedavidmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thedavidmeister/subscriptions","organizations_url":"https://api.github.com/users/thedavidmeister/orgs","repos_url":"https://api.github.com/users/thedavidmeister/repos","events_url":"https://api.github.com/users/thedavidmeister/events{/privacy}","received_events_url":"https://api.github.com/users/thedavidmeister/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T11:52:09Z","updated_at":"2015-11-13T11:52:09Z","body":"I originally asked for this. My use case at the time was wanting to map over a vector of links and do something to each based on the class on each.\r\n\r\nI had actually assumed that elements would work like a collection in some way, but they don't, so this violated the principle of least surprise and left me clutching for jQuery methods to get that the classes on my elements."}}