{"action":"created","issue":{"url":"https://api.github.com/repos/mbylstra/html-to-elm/issues/8","labels_url":"https://api.github.com/repos/mbylstra/html-to-elm/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/mbylstra/html-to-elm/issues/8/comments","events_url":"https://api.github.com/repos/mbylstra/html-to-elm/issues/8/events","html_url":"https://github.com/mbylstra/html-to-elm/issues/8","id":124641254,"number":8,"title":"Error when use class","user":{"login":"victorlcampos","id":1539610,"avatar_url":"https://avatars.githubusercontent.com/u/1539610?v=3","gravatar_id":"","url":"https://api.github.com/users/victorlcampos","html_url":"https://github.com/victorlcampos","followers_url":"https://api.github.com/users/victorlcampos/followers","following_url":"https://api.github.com/users/victorlcampos/following{/other_user}","gists_url":"https://api.github.com/users/victorlcampos/gists{/gist_id}","starred_url":"https://api.github.com/users/victorlcampos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorlcampos/subscriptions","organizations_url":"https://api.github.com/users/victorlcampos/orgs","repos_url":"https://api.github.com/users/victorlcampos/repos","events_url":"https://api.github.com/users/victorlcampos/events{/privacy}","received_events_url":"https://api.github.com/users/victorlcampos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-03T10:11:56Z","updated_at":"2016-01-03T10:21:11Z","closed_at":null,"body":"![image](https://cloud.githubusercontent.com/assets/1539610/12078255/a399a3f8-b1f1-11e5-9960-179381cbe188.png)\r\n"},"comment":{"url":"https://api.github.com/repos/mbylstra/html-to-elm/issues/comments/168485292","html_url":"https://github.com/mbylstra/html-to-elm/issues/8#issuecomment-168485292","issue_url":"https://api.github.com/repos/mbylstra/html-to-elm/issues/8","id":168485292,"user":{"login":"mbylstra","id":702885,"avatar_url":"https://avatars.githubusercontent.com/u/702885?v=3","gravatar_id":"","url":"https://api.github.com/users/mbylstra","html_url":"https://github.com/mbylstra","followers_url":"https://api.github.com/users/mbylstra/followers","following_url":"https://api.github.com/users/mbylstra/following{/other_user}","gists_url":"https://api.github.com/users/mbylstra/gists{/gist_id}","starred_url":"https://api.github.com/users/mbylstra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbylstra/subscriptions","organizations_url":"https://api.github.com/users/mbylstra/orgs","repos_url":"https://api.github.com/users/mbylstra/repos","events_url":"https://api.github.com/users/mbylstra/events{/privacy}","received_events_url":"https://api.github.com/users/mbylstra/received_events","type":"User","site_admin":false},"created_at":"2016-01-03T10:21:11Z","updated_at":"2016-01-03T10:21:11Z","body":"It looks like the issue is actually with the parser failing to parse single quotes (not to do with the class property). This example will work if you use double quotes for the value of `class`:\r\n\r\n```html\r\n<body>\t\r\n  <div class=\"hello\">\r\n    <h1>Hello world</h1>\r\n  </div>\r\n</body>\r\n\r\n```\r\noutput:\r\n```elm\r\nbody []\r\n    [ div [ class \"hello\" ]\r\n        [ h1 []\r\n            [ text \"Hello world\" ]\r\n        ]\r\n    ]\r\n```\r\n\r\nI've changed the issue title to reflect this."}}