{"action":"created","issue":{"url":"https://api.github.com/repos/unframework/html2hyperscript/issues/1","labels_url":"https://api.github.com/repos/unframework/html2hyperscript/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/unframework/html2hyperscript/issues/1/comments","events_url":"https://api.github.com/repos/unframework/html2hyperscript/issues/1/events","html_url":"https://github.com/unframework/html2hyperscript/issues/1","id":62419389,"number":1,"title":"Attributes does not work for https://github.com/dominictarr/hyperscript","user":{"login":"twilson63","id":21292,"avatar_url":"https://avatars.githubusercontent.com/u/21292?v=3","gravatar_id":"","url":"https://api.github.com/users/twilson63","html_url":"https://github.com/twilson63","followers_url":"https://api.github.com/users/twilson63/followers","following_url":"https://api.github.com/users/twilson63/following{/other_user}","gists_url":"https://api.github.com/users/twilson63/gists{/gist_id}","starred_url":"https://api.github.com/users/twilson63/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twilson63/subscriptions","organizations_url":"https://api.github.com/users/twilson63/orgs","repos_url":"https://api.github.com/users/twilson63/repos","events_url":"https://api.github.com/users/twilson63/events{/privacy}","received_events_url":"https://api.github.com/users/twilson63/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-17T14:54:47Z","updated_at":"2015-03-17T15:01:33Z","closed_at":null,"body":"Hey Nick,\r\n\r\nThanks again for building this, it is awesome!  I <3 hyperscript!!!\r\n\r\nI found this issue when trying to work with server-side hyperscript:\r\n\r\nhttps://github.com/unframework/html2hyperscript/blob/master/index.js#L103\r\n\r\nI changed it to \r\n\r\n``` js\r\nvar item = 'h(' + JSON.stringify(element[0] + idSuffix + classSuffix) + (\r\n                attrPairs.length\r\n                    ? \", { \" + attrPairs.join(\",\\n\" + indent + '    ') + \"}\"\r\n                    : ''\r\n            ) + (\r\n                elementContent.length\r\n                    ? ', [' + (elementContent[0] === \"\\n\" ? '' : ' ') + elementContent + (elementContent.match(/\\s$/) ? '' : ' ') + ']'\r\n                    : ''\r\n            ) + ')';\r\n```"},"comment":{"url":"https://api.github.com/repos/unframework/html2hyperscript/issues/comments/82395683","html_url":"https://github.com/unframework/html2hyperscript/issues/1#issuecomment-82395683","issue_url":"https://api.github.com/repos/unframework/html2hyperscript/issues/1","id":82395683,"user":{"login":"unframework","id":784414,"avatar_url":"https://avatars.githubusercontent.com/u/784414?v=3","gravatar_id":"","url":"https://api.github.com/users/unframework","html_url":"https://github.com/unframework","followers_url":"https://api.github.com/users/unframework/followers","following_url":"https://api.github.com/users/unframework/following{/other_user}","gists_url":"https://api.github.com/users/unframework/gists{/gist_id}","starred_url":"https://api.github.com/users/unframework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unframework/subscriptions","organizations_url":"https://api.github.com/users/unframework/orgs","repos_url":"https://api.github.com/users/unframework/repos","events_url":"https://api.github.com/users/unframework/events{/privacy}","received_events_url":"https://api.github.com/users/unframework/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T15:01:33Z","updated_at":"2015-03-17T15:01:33Z","body":"Thanks for reporting, I will make a test and apply the fix!"}}