[whatwg] handling redirects with XMLHttpRequest
Hallvord Reiar Michaelsen Steen
hallvors at online.no
Fri Nov 26 08:05:31 PST 2004
Spec says:
> If the response is an HTTP redirect, then it should be transparently
> followed (unless it violates security or infinite loop precautions)
It does not explicitly state what should happen if these security or
loop precautions are violated by the redirect.. I checked this in
Opera and FireFox, the current implementations differ. FireFox will
"complete" loading and set readyState to 4, but the status will be
302 or whatever redirection status code was used. Opera never changes
readyState to 4, so the loading is interrupted silently. FireFox's
implementation seems cleaner..
Perhaps say:
If the response is an HTTP redirect, then it should be transparently
followed unless it redirects to an address the UA finds unacceptable
due to security limitations or infinite loop precautions. In this
case the UA must complete loading with the current response.
(If that isn't clear enough any rewording is much appreciated, it
still seems a bit kludgy to me.)
--
Hallvord Reiar Michaelsen Steen
http://www.hallvord.com/
More information about the whatwg
mailing list