{"action":"created","issue":{"url":"https://api.github.com/repos/goodeggs/teacup/issues/46","labels_url":"https://api.github.com/repos/goodeggs/teacup/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/goodeggs/teacup/issues/46/comments","events_url":"https://api.github.com/repos/goodeggs/teacup/issues/46/events","html_url":"https://github.com/goodeggs/teacup/issues/46","id":56750633,"number":46,"title":"teacup modifies attributes on rendering","user":{"login":"loveencounterflow","id":1170565,"avatar_url":"https://avatars.githubusercontent.com/u/1170565?v=3","gravatar_id":"","url":"https://api.github.com/users/loveencounterflow","html_url":"https://github.com/loveencounterflow","followers_url":"https://api.github.com/users/loveencounterflow/followers","following_url":"https://api.github.com/users/loveencounterflow/following{/other_user}","gists_url":"https://api.github.com/users/loveencounterflow/gists{/gist_id}","starred_url":"https://api.github.com/users/loveencounterflow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loveencounterflow/subscriptions","organizations_url":"https://api.github.com/users/loveencounterflow/orgs","repos_url":"https://api.github.com/users/loveencounterflow/repos","events_url":"https://api.github.com/users/loveencounterflow/events{/privacy}","received_events_url":"https://api.github.com/users/loveencounterflow/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-06T00:11:48Z","updated_at":"2015-02-09T00:49:44Z","closed_at":"2015-02-09T00:49:44Z","body":"When i do\r\n\r\n```coffee\r\n{render, ul, li} = require 'teacup'\r\nd =\r\n  foo:    'baz'\r\n  name:   'roger'\r\n  class:  'foo bar'\r\noutput = render ->\r\n  ul ->\r\n    li d, 'Bergamont'\r\n    li d, 'Chamomile'\r\nconsole.log output\r\n```\r\n\r\ni would expect the output to be \r\n```html\r\n<ul><li class=\"foo bar\" foo=\"baz\" name=\"roger\">Bergamont</li><li class=\"foo bar\" foo=\"baz\" foo=\"baz\" name=\"roger\">Chamomile</li></ul>\r\n```\r\n\r\nInstead, what i get is this:\r\n\r\n```html\r\n<ul><li class=\"foo bar\" foo=\"baz\" name=\"roger\">Bergamont</li><li foo=\"baz\" name=\"roger\">Chamomile</li></ul>\r\n```\r\nwhere the class attribute has disappeared in the second tag. \r\n\r\nI guess this is caused by [line #100 of teacup.coffee](https://github.com/goodeggs/teacup/blob/master/src/teacup.coffee#L100) where the code deals with 'ordered attributes'. \r\n\r\nBoth the concept of HTML having any kind of ordering in attributes and code that surreptitiously modifies arguments it is supposed to just render are bogus to me; i suggest to just delete lines 97 through 101 from the source.\r\n"},"comment":{"url":"https://api.github.com/repos/goodeggs/teacup/issues/comments/73443563","html_url":"https://github.com/goodeggs/teacup/issues/46#issuecomment-73443563","issue_url":"https://api.github.com/repos/goodeggs/teacup/issues/46","id":73443563,"user":{"login":"hurrymaplelad","id":1083040,"avatar_url":"https://avatars.githubusercontent.com/u/1083040?v=3","gravatar_id":"","url":"https://api.github.com/users/hurrymaplelad","html_url":"https://github.com/hurrymaplelad","followers_url":"https://api.github.com/users/hurrymaplelad/followers","following_url":"https://api.github.com/users/hurrymaplelad/following{/other_user}","gists_url":"https://api.github.com/users/hurrymaplelad/gists{/gist_id}","starred_url":"https://api.github.com/users/hurrymaplelad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hurrymaplelad/subscriptions","organizations_url":"https://api.github.com/users/hurrymaplelad/orgs","repos_url":"https://api.github.com/users/hurrymaplelad/repos","events_url":"https://api.github.com/users/hurrymaplelad/events{/privacy}","received_events_url":"https://api.github.com/users/hurrymaplelad/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T00:49:44Z","updated_at":"2015-02-09T00:49:44Z","body":"Fixed by #47 "}}