Hey Julian Thanks for picking up on that, that's exactly why I needed another pair of eyes. I've actually read about the comma in urls issue but at some point that got lost at around 2am.
I suppose I'll split it into an array by matching filenames instead. If you (or anyone) has any more comments I'd be glad to hear them, Many thanks, Dave ------Original Message------ From: Julian Reschke To: [email protected] Cc: [email protected] Subject: Re: [whatwg] srcset javascript implementation (Respondu) Sent: 21 May 2012 08:52 On 2012-05-21 09:36, [email protected] wrote: > Hey Julian > > I believe the attribute sets are delimited by comma, whereas each attribute > itself is separated by space? No. The URIs can contain a comma, so you can't use that delimiter. See the parsing definition in the spec. > ... (Please don't take this as a complaint about your code, but about the syntax of the attribute). Best regards, Julian Sent from my BlackBerry® smartphone on O2
