On May 18, 2012, at 3:16 AM, Markus Ernst <[email protected]> wrote: > Am 15.05.2012 09:28 schrieb Ian Hickson: >> <img src="[email protected]" alt="" >> srcset="[email protected] 600w 200h 1x, >> [email protected] 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
