Re: [whatwg] a download feedback

2012-03-03 Thread Glenn Maynard
Another use case: fixing Google's search results.  They're currently
annoyingly broken: save link as on a result link in Firefox offers a
useless default filename of url.htm.  The filename attribute would fix
this: set the Content-Disposition filename without affecting the
disposition type attachment vs. inline).  For example:  a
href=/url?data=... filename=product manual.pdf.  That would simply set
a default Content-Disposition: filename field.

Setting Content-Disposition: attachment should be an attribute orthogonal
to the filename, eg. a download.  The attachment vs. inline mode is an
orthogonal concept to the default filename, and the download=filename
design loses that orthogonality, which I believe is a serious flaw.

This is also an example of why having separate view vs. download links
is bad.  Google search results shouldn't need separate download links to
be able to set the filename, leaving save-as on the main result links
broken.  It should work properly with a single link.

-- 
Glenn Maynard


Re: [whatwg] a download feedback

2012-03-03 Thread Bjartur Thorlacius

Þann lau  3.mar 2012 21:30, skrifaði Glenn Maynard:

Another use case: fixing Google's search results.  They're currently
annoyingly broken: [snip]
Yes, Google is broken. But no, Save As is not the only thing that it 
breaks.


In special,

a 
href=http://www.google.com/url?sa=tamp;rct=jamp;q=l%C3%B6gbergamp;source=webamp;cd=2amp;ved=0CCwQFjABamp;url=http%3A%2F%2Fwww.thingvellir.is%2Fsaga%2Flogberg%2Famp;ei=F69ST6T3OM6XOqGOnZEKamp;usg=AFQjCNEPLku9Nm5bsA12_oY9mV1gPH3Aegamp;cad=rja; 
...


does not link to http://www.thingvellir.is/saga/logberg/. Google could 
fix this by linking directly. That, however, would allow for opting out 
of tracking by simply not running scripts.


Re: [whatwg] a download feedback

2012-03-03 Thread Peter Kasting
On Sat, Mar 3, 2012 at 4:27 PM, Bjartur Thorlacius svartma...@gmail.comwrote:

 In special,

 a href=http://www.google.com/**url?sa=tamp;rct=jamp;q=l%C3%**
 B6gbergamp;source=webamp;cd=**2amp;ved=0CCwQFjABamp;url=**
 http%3A%2F%2Fwww.thingvellir.**is%2Fsaga%2Flogberg%2Famp;ei=**
 F69ST6T3OM6XOqGOnZEKamp;usg=**AFQjCNEPLku9Nm5bsA12_**
 oY9mV1gPH3Aegamp;cad=rjahttp://www.google.com/url?sa=trct=jq=l%C3%B6gbergsource=webcd=2ved=0CCwQFjABurl=http%3A%2F%2Fwww.thingvellir.is%2Fsaga%2Flogberg%2Fei=F69ST6T3OM6XOqGOnZEKusg=AFQjCNEPLku9Nm5bsA12_oY9mV1gPH3Aegcad=rja
 ...

 does not link to 
 http://www.thingvellir.is/**saga/logberg/http://www.thingvellir.is/saga/logberg/.
 Google could fix this by linking directly. That, however, would allow for
 opting out of tracking by simply not running scripts.


This is an unrelated issue, which a ping was designed to address.

PK