Re: [whatwg] Features for responsive Web design

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).

Cheers,
Maciej

Received on Friday, 18 May 2012 10:32:02 UTC