W3C home > Mailing lists > Public > public-respimg@w3.org > September 2013

Re: srcN - Alternative to picture and srcset

From: Robin Berjon <robin@w3.org>
Date: Fri, 27 Sep 2013 13:54:25 +0200
Message-ID: <524571F1.6030308@w3.org>
To: Shane Hudson <Shane@ShaneHudson.net>
CC: Marcos Caceres <marcos@marcosc.com>, "public-respimg@w3.org" <public-respimg@w3.org>, "Tab Atkins Jr." <jackalmage@gmail.com>
On 27/09/2013 12:51 , Shane Hudson wrote:
> I quite like where Tab is going with this. I wonder though, would it be
> possible to have multiple srcs instead of numbering them? It feels kind
> of hacky. I'm pretty sure that browsers (both current and legacy) only
> take the first src in an img?

Having multiple src attributes with the same name would bring in all 
sorts of issues. What would getAttribute("src") return? Or img.src? How 
would you convince things that currently produce HTML to suddenly 
support this when they so often rely on data structures that guarantee 
key uniqueness? How would you make it work in XHTML? Etc.

-- 
Robin Berjon - http://berjon.com/ - @robinberjon
Received on Friday, 27 September 2013 11:54:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:12:40 UTC