{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/12358","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/12358/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/12358/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/12358/events","html_url":"https://github.com/emberjs/ember.js/issues/12358","id":107021104,"number":12358,"title":"2.1: `<a href={{condition}}>` results in `<a href=\"null\">` after `condition` was dynamically set to null","user":{"login":"lolmaus","id":200884,"avatar_url":"https://avatars.githubusercontent.com/u/200884?v=3","gravatar_id":"","url":"https://api.github.com/users/lolmaus","html_url":"https://github.com/lolmaus","followers_url":"https://api.github.com/users/lolmaus/followers","following_url":"https://api.github.com/users/lolmaus/following{/other_user}","gists_url":"https://api.github.com/users/lolmaus/gists{/gist_id}","starred_url":"https://api.github.com/users/lolmaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lolmaus/subscriptions","organizations_url":"https://api.github.com/users/lolmaus/orgs","repos_url":"https://api.github.com/users/lolmaus/repos","events_url":"https://api.github.com/users/lolmaus/events{/privacy}","received_events_url":"https://api.github.com/users/lolmaus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-17T16:19:56Z","updated_at":"2015-09-21T12:19:41Z","closed_at":null,"body":"So you've got this in your template:\r\n\r\n```html\r\n<a href={{condition}}>\r\n```\r\n\r\n`condition` is `null`, and it correctly renders to `<a>`.\r\n\r\nBut then you change `condition` dynamically.\r\n\r\nWhen `condition` is `null` again, it renders as `<a href=\"null\">`.\r\n\r\nDemo (thx to @alexspeller): http://ember-twiddle.com/a0a8088d67b451817902"},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/141954976","html_url":"https://github.com/emberjs/ember.js/issues/12358#issuecomment-141954976","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/12358","id":141954976,"user":{"login":"lolmaus","id":200884,"avatar_url":"https://avatars.githubusercontent.com/u/200884?v=3","gravatar_id":"","url":"https://api.github.com/users/lolmaus","html_url":"https://github.com/lolmaus","followers_url":"https://api.github.com/users/lolmaus/followers","following_url":"https://api.github.com/users/lolmaus/following{/other_user}","gists_url":"https://api.github.com/users/lolmaus/gists{/gist_id}","starred_url":"https://api.github.com/users/lolmaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lolmaus/subscriptions","organizations_url":"https://api.github.com/users/lolmaus/orgs","repos_url":"https://api.github.com/users/lolmaus/repos","events_url":"https://api.github.com/users/lolmaus/events{/privacy}","received_events_url":"https://api.github.com/users/lolmaus/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T12:19:41Z","updated_at":"2015-09-21T12:19:41Z","body":"@pixelhandler That would result in code duplication. It gets really burdensome when your link content is complex."}}