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

Re: [whatwg] srcset javascript implementation (Respondu)

From: Glenn Maynard <glenn@zewt.org>
Date: Mon, 21 May 2012 09:12:58 -0500
Message-ID: <CABirCh_ZUVR5O=a4AvwYvU5=0iZEGngrXbNjNOv2dVBMToCb7w@mail.gmail.com>
To: huperekchuno@googlemail.com
Cc: Julian Reschke <julian.reschke@gmx.de>, whatwg@whatwg.org
On Mon, May 21, 2012 at 2:36 AM, <huperekchuno@googlemail.com> wrote:

> Hey Julian
>
> I believe the attribute sets are delimited by comma, whereas each
> attribute itself is separated by space?
>
> The split is to load each attribute set into an array.
>
> The actual attributes themselves are matched with regex's, to be more
> forgiving to the order.
>

What you need is the parsing algorithm:

http://www.whatwg.org/specs/web-apps/current-work/#processing-the-image-candidates

(modulo https://www.w3.org/Bugs/Public/show_bug.cgi?id=17079, at least)

-- 
Glenn Maynard
Received on Monday, 21 May 2012 14:13:54 GMT

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