[whatwg] [rest-discuss] HTML5 and RESTful HTTP in browsers
adrian.sutton at ephox.com
Mon Nov 17 04:03:32 PST 2008
On 17/11/2008 11:29, "mike at mykanjo.co.uk" <mike at mykanjo.co.uk> wrote:
> Does anyone else agree that an Accept attribute would be a useful tool for
> making browser interaction more RESTful? Is it worth persuing this issue with
> the HTML5 working group?
I don't see why the Accept header when following links or requesting images
should be controlled by anything other than the browser. It's the browser
that has to decide actually render the returned content so it's in the best
position to decide what it can accept, not the page author.
On the other hand, XMLHttpRequest should be able to control the Accept
handle the response. I would have thought this was already possible though.
Is there a particular use case you had in mind where the HTML author would
know what the browser accepts better than the browser does?
Adrian Sutton, CTO
UK: +44 1 753 27 2229 US: +1 (650) 292 9659 x717
Ephox Blogs <http://planet.ephox.com/>, Personal Blog
More information about the whatwg