{"action":"created","issue":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/583","labels_url":"https://api.github.com/repos/ampproject/amphtml/issues/583/labels{/name}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/583/comments","events_url":"https://api.github.com/repos/ampproject/amphtml/issues/583/events","html_url":"https://github.com/ampproject/amphtml/issues/583","id":111015740,"number":583,"title":"Extend existing HTML elements instead of creating custom ones","user":{"login":"niutech","id":384997,"avatar_url":"https://avatars.githubusercontent.com/u/384997?v=3","gravatar_id":"","url":"https://api.github.com/users/niutech","html_url":"https://github.com/niutech","followers_url":"https://api.github.com/users/niutech/followers","following_url":"https://api.github.com/users/niutech/following{/other_user}","gists_url":"https://api.github.com/users/niutech/gists{/gist_id}","starred_url":"https://api.github.com/users/niutech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niutech/subscriptions","organizations_url":"https://api.github.com/users/niutech/orgs","repos_url":"https://api.github.com/users/niutech/repos","events_url":"https://api.github.com/users/niutech/events{/privacy}","received_events_url":"https://api.github.com/users/niutech/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ampproject/amphtml/labels/discussion","name":"discussion","color":"bfdadc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-12T17:01:14Z","updated_at":"2015-10-13T16:14:02Z","closed_at":"2015-10-12T19:43:43Z","body":"Please replace custom tags:\r\n`<amp-img>` with `<img is=\"amp-img\">`,\r\n`<amp-pixel>` with `<img is=\"amp-pixel\">`,\r\n`<amp-video>` with `<video is=\"amp-video\">`,\r\n`<amp-audio>` with `<audio is=\"amp-audio\">`,\r\n`<amp-iframe>` with `<iframe is=\"amp-iframe\">`\r\nas described in the [Custom Elements spec](http://w3c.github.io/webcomponents/spec/custom/#dfn-type-extension). This will allow custom tags to be backward compatible with browsers having JavaScript disabled or when the AMP JS library could not be loaded from the CDN.\r\nFor now, the `<amp-img>` will be completely invisible, unless the the AMP JS library is loaded."},"comment":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/comments/147764746","html_url":"https://github.com/ampproject/amphtml/issues/583#issuecomment-147764746","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/583","id":147764746,"user":{"login":"justincavery","id":204469,"avatar_url":"https://avatars.githubusercontent.com/u/204469?v=3","gravatar_id":"","url":"https://api.github.com/users/justincavery","html_url":"https://github.com/justincavery","followers_url":"https://api.github.com/users/justincavery/followers","following_url":"https://api.github.com/users/justincavery/following{/other_user}","gists_url":"https://api.github.com/users/justincavery/gists{/gist_id}","starred_url":"https://api.github.com/users/justincavery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justincavery/subscriptions","organizations_url":"https://api.github.com/users/justincavery/orgs","repos_url":"https://api.github.com/users/justincavery/repos","events_url":"https://api.github.com/users/justincavery/events{/privacy}","received_events_url":"https://api.github.com/users/justincavery/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T16:14:02Z","updated_at":"2015-10-13T16:14:02Z","body":"I think most content producers have great control over the surrounding template applied to the content itself, however when it comes to accessing and manipulating the content found within the content block itself it becomes more difficult to achieve.\r\n\r\nTo provide access to this approach it would be much simpler to include an `is` attribute to existing valid HTML within the content block itself, and if not `is` then perhaps a `<img amp-img='ampversion-image.jpg' />`.\r\n\r\nIdeally it would be great to rely on using  `picture` or `srcset` to provide the best suited image (although this will not include a set width and height to work from)."}}