{"issue":{"state":"open","pull_request":{"diff_url":"https://github.com/ded/bonzo/pull/40.diff","html_url":"https://github.com/ded/bonzo/pull/40","patch_url":"https://github.com/ded/bonzo/pull/40.patch"},"user":{"avatar_url":"https://secure.gravatar.com/avatar/e18dcb5ecf77b2666303128edab9027b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e18dcb5ecf77b2666303128edab9027b","url":"https://api.github.com/users/Calvein","login":"Calvein","id":243189},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-11-03T02:29:48Z","closed_at":null,"comments":3,"url":"https://api.github.com/repos/ded/bonzo/issues/40","body":"","html_url":"https://github.com/ded/bonzo/issues/40","number":40,"title":"Getting the `value` attribute of a `<data>` element returned undefined","id":2110625,"created_at":"2011-11-01T14:11:00Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/026f5af604a336a38301639027757f29?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"026f5af604a336a38301639027757f29","url":"https://api.github.com/users/rvagg","login":"rvagg","id":495647},"updated_at":"2011-11-03T02:29:48Z","url":"https://api.github.com/repos/ded/bonzo/issues/comments/2612589","body":"@Calvein can you write a test or two for it? Just fiddling in Chrome I can see that `(<data>).value` gives undefined while `(<data>).getAttribute('value')` gives the attribute value which is where `attr()` is tripping up for you but `<li>` seems to work OK wtih just `.value` (or `['value']`). Would be good to see it across browsers.\r\nWould also be good to fix the case sensitivity thing too, perhaps a `toLowerCase()` rather than fixing the regex cause I think the spec wants lower case attribute keys anyway?","id":2612589,"created_at":"2011-11-03T02:29:48Z"}}