Re: CSP and `picture`

On 4/20/2013 4:34 PM, Adam Barth wrote:
>      > Personally, I believe it would be easier for authors if the
>     directive is
>      > `img-src` (rather than `media-src`)
>
> That makes sense to me as well.

Me too, the picture element is clearly meant as a "better IMG" replacement.

"What we want to do is have the picture behave exactly the same as an 
img element, but with the only difference being that it is source 
elements is used to determine the value of the src IDL attribute"

Until there's native browser support sites will rely on polyfill 
libraries which implement this using IMG, and thus fall under img-src 
already.

-Dan Veditz

Received on Thursday, 25 April 2013 02:25:43 UTC