{"action":"closed","issue":{"url":"https://api.github.com/repos/scottjehl/picturefill/issues/539","labels_url":"https://api.github.com/repos/scottjehl/picturefill/issues/539/labels{/name}","comments_url":"https://api.github.com/repos/scottjehl/picturefill/issues/539/comments","events_url":"https://api.github.com/repos/scottjehl/picturefill/issues/539/events","html_url":"https://github.com/scottjehl/picturefill/issues/539","id":94754263,"number":539,"title":"Using `data-pfsrcset` attribute instead of `srcset` for img tags that have a picture parent","user":{"login":"AdamMerrifield","id":366243,"avatar_url":"https://avatars.githubusercontent.com/u/366243?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamMerrifield","html_url":"https://github.com/AdamMerrifield","followers_url":"https://api.github.com/users/AdamMerrifield/followers","following_url":"https://api.github.com/users/AdamMerrifield/following{/other_user}","gists_url":"https://api.github.com/users/AdamMerrifield/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamMerrifield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamMerrifield/subscriptions","organizations_url":"https://api.github.com/users/AdamMerrifield/orgs","repos_url":"https://api.github.com/users/AdamMerrifield/repos","events_url":"https://api.github.com/users/AdamMerrifield/events{/privacy}","received_events_url":"https://api.github.com/users/AdamMerrifield/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scottjehl/picturefill/labels/Discussion","name":"Discussion","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-13T15:56:36Z","updated_at":"2015-07-14T12:08:24Z","closed_at":"2015-07-14T12:08:24Z","body":"In the documentation there are two caveats that are semi conflicting; Temporary extra HTTP Requests for picture usage in some browsers, and Source element limitations.\r\n\r\nTo remedy both of these couldn't `img` elements that have a `picture` parent use `data-pfsrcset` (an attribute we are already adding for the method `dodgeSrcset`) instead of `srcset`? Obviously this would break native implementation of `srcset` (which is kind of the point since it's a fallback anyway) but since it has `source` siblings it should be using them anyway. This way `img` elements won't incur the extra HTTP request from the browser's preparser and picturefill will still be able to get the srcset to polyfill Android 2.3.\r\n\r\nDoes anyone see a problem with this?"}}