{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/10846","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/10846/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/10846/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/10846/events","html_url":"https://github.com/emberjs/ember.js/issues/10846","id":67082605,"number":10846,"title":"component with tagName of <img> with \"width\" / \"height\" attribute regression","user":{"login":"oriSomething","id":2685242,"avatar_url":"https://avatars.githubusercontent.com/u/2685242?v=3","gravatar_id":"","url":"https://api.github.com/users/oriSomething","html_url":"https://github.com/oriSomething","followers_url":"https://api.github.com/users/oriSomething/followers","following_url":"https://api.github.com/users/oriSomething/following{/other_user}","gists_url":"https://api.github.com/users/oriSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/oriSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oriSomething/subscriptions","organizations_url":"https://api.github.com/users/oriSomething/orgs","repos_url":"https://api.github.com/users/oriSomething/repos","events_url":"https://api.github.com/users/oriSomething/events{/privacy}","received_events_url":"https://api.github.com/users/oriSomething/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-08T08:58:42Z","updated_at":"2015-04-09T06:33:10Z","closed_at":null,"body":"since ember 1.11.1, i have a regression related to `components` with `tagName` of `img`. i cannot assign `width` or `height` with percentage unit. it convert percentage units to `0`.\r\n\r\nyou can see in the link the problem:\r\nhttp://codepen.io/oriSomething/pen/LEoqBo\r\n\r\nedit:\r\nalso doesn't work with canary build"},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/91127126","html_url":"https://github.com/emberjs/ember.js/issues/10846#issuecomment-91127126","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/10846","id":91127126,"user":{"login":"oriSomething","id":2685242,"avatar_url":"https://avatars.githubusercontent.com/u/2685242?v=3","gravatar_id":"","url":"https://api.github.com/users/oriSomething","html_url":"https://github.com/oriSomething","followers_url":"https://api.github.com/users/oriSomething/followers","following_url":"https://api.github.com/users/oriSomething/following{/other_user}","gists_url":"https://api.github.com/users/oriSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/oriSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oriSomething/subscriptions","organizations_url":"https://api.github.com/users/oriSomething/orgs","repos_url":"https://api.github.com/users/oriSomething/repos","events_url":"https://api.github.com/users/oriSomething/events{/privacy}","received_events_url":"https://api.github.com/users/oriSomething/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T06:33:10Z","updated_at":"2015-04-09T06:33:10Z","body":"i made this test in `ember-metal-views/tests/attributes_test.js`:\r\n```javascript\r\nQUnit.test('<img> aliased attributeBindings', function() {\r\n  var view = {\r\n    tagName: 'img',\r\n    isView: true,\r\n    attributeBindings: ['width', 'dataWidth:data-width'],\r\n    width: '90',\r\n    dataWidth: '90'\r\n  };\r\n\r\n  var el = appendTo(view);\r\n\r\n  equal(el.getAttribute('data-width'), '90', \"The data attribute alias was set\");\r\n  equal(el.getAttribute('width'), '90', \"The attribute alias was set\");\r\n\r\n  subject().removeAndDestroy(view);\r\n});\r\n```\r\nand got this result:\r\n![ember](https://cloud.githubusercontent.com/assets/2685242/7061483/605c07cc-de9b-11e4-8861-94f6567b283e.png)\r\n\r\n"}}