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

[whatwg] HTML5 Edit Link Relation

From: Martin Atkins <mart@degeneration.co.uk>
Date: Mon, 05 Nov 2007 19:21:29 +0000
Message-ID: <472F6D39.8080400@degeneration.co.uk>
James M Snell wrote:
> This is just off the top of my head so I'm certain that there are
> probably reasons why this wouldn't work, but could we not do something like,
> 
>   <link rel="edit put delete patch" href="http://example.org/foo" />
> 
> Edit indicates the purpose of the link, put, delete and patch indicate
> methods (in addition to GET).
> 

That doesn't tell you what sort of stuff you are allowed to PUT to that 
URL, though. I'm not sure that HTML is really the place to tell you that 
it expects an Atom entry, but without it knowing that it supports PUT is 
not that useful either.

However, I guess one could argue that there should be something that 
acts as the opposite of the "type" attribute: rather than the type that 
should result when you GET, instead indicate the type that you should 
PUT. Probably too tricky to be worth it, though: it'd probably need all 
of the capabilities of the HTTP "Accept" header to be useful, and it's 
questionable whether that much detail should be defined externally of 
the resource itself.

(I guess that discovering this sort of thing is what the OPTIONS method 
is for?)
Received on Monday, 5 November 2007 11:21:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:47:42 GMT