[whatwg] Priority between <a download> and content-disposition

Julian Reschke julian.reschke at gmx.de
Sun Mar 17 04:46:37 PDT 2013

On 2013-03-17 02:49, Jonas Sicking wrote:
> It's currently unclear what to do if a page contains markup like <a
> href="page.txt" download="A.txt"> if the resource at audio.wav
> responds with either
> 1) Content-Disposition: inline
> 2) Content-Disposition: inline; filename="B.txt"
> 3) Content-Disposition: attachment; filename="B.txt"
> People generally seem to have a harder time with getting header data
> right, than getting markup right, and so I think that in all cases we
> should display the "save as" dialog (or display equivalent download
> UI) and suggest the filename "A.txt".

I agree that people have problems getting headers right, but in all the 
cases above, it seems they have set the header on purpose, no?

My recollection was that a/@download was mainly added for cases where 
the header field couldn't be set at all...

 > ...

Best regards, Julian

More information about the whatwg mailing list