W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2006

[whatwg] hash Attribute

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 8 Nov 2006 16:28:19 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0611081623450.30375@dhalsim.dreamhost.com>
On Tue, 7 Nov 2006, XcomCoolDude wrote:
> How about a hash attribute for all elements that link to external files 
> (a, img, etc.)?

What would it do? Could you give the implementation requirements?

If the idea is that UAs that implement this would stop you from using the 
file if the checksum didn't match, then this would just cause users to use 
browsers _without_ this feature to download files, since those browsers 
wouldn't complain about data corruption. "It works when I use IE to 
download the file but when I use Camari, it says 'checksum error'."

On Tue, 7 Nov 2006, Charles Iliya Krempeaux wrote:
> http://microformats.org/wiki/hash-examples
> Aren't URNs already being very commonly used for hashes.
> Also, something else to think about is that, under certain conditions, 
> this info could potentially be passed along via HTTP headers.
> Also related are MAGNET-URIs...
>    http://magnet-uri.sourceforge.net/

On Wed, 8 Nov 2006, Tom Pike wrote:
> Additionally, this case is already covered by the HTTP spec, namely the 
> Content-MD5 header:
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.15

Given the various mechanisms that already exist to do this, it seems like 
adding yet another one would be a bad idea.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 8 November 2006 08:28:19 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:49 UTC