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

Re: [whatwg] Features for responsive Web design

From: Julian Reschke <julian.reschke@gmx.de>
Date: Fri, 18 May 2012 12:51:05 +0200
Message-ID: <4FB62999.1070706@gmx.de>
To: Maciej Stachowiak <mjs@apple.com>
Cc: Markus Ernst <derernst@gmx.ch>, whatwg@whatwg.org
On 2012-05-18 12:30, Maciej Stachowiak wrote:
>
> On May 18, 2012, at 3:16 AM, Markus Ernst<derernst@gmx.ch>  wrote:
>
>> Am 15.05.2012 09:28 schrieb Ian Hickson:
>>>     <img src="face-600-200@1.jpeg" alt=""
>>>          srcset="face-600-200@1.jpeg 600w 200h 1x,
>>>                  face-600-200@2.jpeg 600w 200h 2x,
>>>                  face-icon.png       200w 200h">
>>
>> Re-reading most parts of the last day's discussions, 2 questions come to my mind that I have the impression have not been pointed out very clearly so far:
>>
>> 1. Are there other cases in HTML where an attribute value contains more than one URI?
>>
>> 2. Have there been thoughts on the scriptability of @srcset? While sources can be added to resp. removed from<picture>  easily with standard DOM methods, it looks to me like this would require complex string operations for @srcset.
>
> If dynamically manipulating the items in srcset is useful, we can add a DOM API (similar to classList or style for manipulating the lists of items found in class and style attributes respectively).

...which of course means that it stops being "simpler".

I think it would be worthwhile to combine elements form both proposals; 
in particular to avoid the microsyntax and use proper markup instead.

Best regards, Julian
Received on Friday, 18 May 2012 10:51:53 GMT

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