W3C home > Mailing lists > Public > public-respimg@w3.org > November 2012

Re: Seeking use cases for knowing the currently selected source

From: Marcos Caceres <w3c@marcosc.com>
Date: Wed, 28 Nov 2012 14:35:53 +0000
To: Miguel Garcia <magarcia2@me.com>, Scott Jehl <scott@scottjehl.com>
Cc: "public-respimg@w3.org" <public-respimg@w3.org>
Message-ID: <9E5C49EA43034B5CB93EB53E462D205D@marcosc.com>

On Wednesday, November 28, 2012 at 12:32 AM, Marcos Caceres wrote:

> Agreed 100%, but we need to check for conflicts (as we are redefining how an attribute works). There must be a reason why video has both src and currentSrc? Irrespective, we need a strong use case.

So, I think the reason you would not be able to use src is because:

"The alt, src, and srcset IDL attributes must reflect the respective content attributes of the same name."  

It would be bad, IMHO, to special case the src attribute. This would also be confusing, because you could no longer ask img.src what the value of the img's src attribute is… you would need to do img.getAttribute("src").  
Received on Wednesday, 28 November 2012 14:36:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:06:08 UTC