Re: [whatwg] Features for responsive Web design

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 UTC