The document's address

The definition of the document's address:
http://dev.w3.org/html5/spec/dom.html#the-document's-address
doesn't mention if the Content-Location header should be taken into account.

For example say when creating a new resource, you present a warning but the resource was created anyway.

POST /collection HTTP/1.1
…

HTTP/1.1 201 Created
Location: /collection/1
Content-Location: /collection/1/warnings

<!DOCTYPE HTML>
<p>Your resource was created, but the following conditions were noted. Please resolve them if they are not correct:
…


followed by a form. If the action of the form is the empty string, should the form be submitted to /collection or /collection/1/warnings ?


Ideologically, the address bar should update to the Content-Location of the response body, as that is what is being displayed, and there would be no issue ― forms with empty action attributes would submit to  /collection/1/warnings ― but I believe web browser UAs don't do this at present.

― Nicholas.

Received on Wednesday, 21 November 2012 14:13:26 UTC