{"action":"created","issue":{"url":"https://api.github.com/repos/muut/riotjs/issues/786","labels_url":"https://api.github.com/repos/muut/riotjs/issues/786/labels{/name}","comments_url":"https://api.github.com/repos/muut/riotjs/issues/786/comments","events_url":"https://api.github.com/repos/muut/riotjs/issues/786/events","html_url":"https://github.com/muut/riotjs/issues/786","id":81297385,"number":786,"title":"Browser riot.compile(): Boolean attributes not working according to documentation","user":{"login":"tilleps","id":1414709,"avatar_url":"https://avatars.githubusercontent.com/u/1414709?v=3","gravatar_id":"","url":"https://api.github.com/users/tilleps","html_url":"https://github.com/tilleps","followers_url":"https://api.github.com/users/tilleps/followers","following_url":"https://api.github.com/users/tilleps/following{/other_user}","gists_url":"https://api.github.com/users/tilleps/gists{/gist_id}","starred_url":"https://api.github.com/users/tilleps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tilleps/subscriptions","organizations_url":"https://api.github.com/users/tilleps/orgs","repos_url":"https://api.github.com/users/tilleps/repos","events_url":"https://api.github.com/users/tilleps/events{/privacy}","received_events_url":"https://api.github.com/users/tilleps/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/muut/riotjs/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/muut/riotjs/labels/low%20priority","name":"low priority","color":"f9f9f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-05-27T06:11:00Z","updated_at":"2015-06-02T21:42:23Z","closed_at":"2015-06-02T21:42:23Z","body":"Boolean attributes don't appear to be working as stated in the docs: https://muut.com/riotjs/guide/#boolean-attributes\r\n\r\nJSFiddle: https://jsfiddle.net/7cv4m4k9/\r\n\r\nHTML:\r\n```html\r\n<my-example></my-example>\r\n```\r\n\r\nJavascript:\r\n```javascript\r\nriot.tag('my-example', '<input type=\"checkbox\" checked=\"{isChecked}\" />', function (opts) {\r\n  this.isChecked = false;\r\n});\r\n\r\nriot.mount('*');\r\n```\r\n\r\nIntended result:\r\n```html\r\n<input type=\"checkbox\" />\r\n```\r\n\r\nActual result:\r\n```html\r\n<input type=\"checkbox\" checked=\"false\" />\r\n```\r\n\r\n\r\n\r\nHowever it does appear to work if the attribute is changed to \"__attribute\", as seen in some riotjs demos.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/muut/riotjs/issues/comments/108107124","html_url":"https://github.com/muut/riotjs/issues/786#issuecomment-108107124","issue_url":"https://api.github.com/repos/muut/riotjs/issues/786","id":108107124,"user":{"login":"tilleps","id":1414709,"avatar_url":"https://avatars.githubusercontent.com/u/1414709?v=3","gravatar_id":"","url":"https://api.github.com/users/tilleps","html_url":"https://github.com/tilleps","followers_url":"https://api.github.com/users/tilleps/followers","following_url":"https://api.github.com/users/tilleps/following{/other_user}","gists_url":"https://api.github.com/users/tilleps/gists{/gist_id}","starred_url":"https://api.github.com/users/tilleps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tilleps/subscriptions","organizations_url":"https://api.github.com/users/tilleps/orgs","repos_url":"https://api.github.com/users/tilleps/repos","events_url":"https://api.github.com/users/tilleps/events{/privacy}","received_events_url":"https://api.github.com/users/tilleps/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T21:42:23Z","updated_at":"2015-06-02T21:42:23Z","body":"@cognitom Yes, you are correct.  I was missing the custom tag wrapper for `riot.compile()` to work.  As for the `riot tag` attribute, it helps, but that markup can't be reused for other tags.  I guess I'll just have to wait for the namespacing.\r\n\r\n"}}