W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2012

Re: [whatwg] <img srcset> for responsive bitmapped content images

From: Odin Hørthe Omdal <odinho@opera.com>
Date: Wed, 16 May 2012 11:51:22 +0200
To: whatwg@lists.whatwg.org
Message-ID: <op.weeazwwu49xobu@odinho-fido.oslo.osa>
On Wed, 16 May 2012 11:22:07 +0200, Julian Reschke <julian.reschke@gmx.de>  
wrote:

> Inventing a new microsyntax is tricky.
>  - "comma separated" implies you'll need to escape a comma when it  
> appears in a URI; this may be a problem when the URI scheme assigns a  
> special meaning to the comma (so it doesn't affect HTTP but still...)

Indeed.

Edward did not write it all as a spec, though, so cases like that might be  
a bit detailed for a first proposal. Hixies extension of srcset does  
however have some spec text, and that does in fact handle your first case:

<http://www.whatwg.org/specs/web-apps/current-work/multipage/embedded-content-1.html#processing-the-image-candidates>

>  - separating URIs from parameters with whitespace implies that the URIs  
> are valid (in that they do not contain whitespace themselves); I  
> personally have no problem with that, but it should be kept in mind

Me neither. I'm no big fan of non-valid URIs. :-)

-- 
Odin Hørthe Omdal (Velmont/odinho) · Core, Opera Software, http://opera.com
Received on Wednesday, 16 May 2012 09:52:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:08 GMT