Re: Seeking use cases for knowing the currently selected source

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