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

[whatwg] [rest-discuss] HTML5 and RESTful HTTP in browsers

From: Adrian Sutton <adrian.sutton@ephox.com>
Date: Mon, 17 Nov 2008 12:03:32 +0000
Message-ID: <C5470E14.A68B%adrian.sutton@ephox.com>
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
header because the page author will control the JavaScript which has to
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?

Regards,

Adrian Sutton.
______________________
Adrian Sutton, CTO
UK: +44 1 753 27 2229  US: +1 (650) 292 9659 x717
Ephox <http://www.ephox.com/>
Ephox Blogs <http://planet.ephox.com/>, Personal Blog
<http://www.symphonious.net/>
Received on Monday, 17 November 2008 04:03:32 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:07 UTC