3) Set documentUrl to the location of the retrieved resource considering redirections is not clear about this (at least to me). I could also not find any other mention of base resolution that is done afterwards.
Thinking about it suggests that it should not be relative (because a redirection chain http://foo/bar -> http://bar/foo -> /bar would loose that inbetween step and therefore lead to a wrong result if just the last relative url would have been returned).
3) Set documentUrl to the location of the retrieved resource considering redirectionsis not clear about this (at least to me). I could also not find any other mention of base resolution that is done afterwards.Thinking about it suggests that it should not be relative (because a redirection chain
http://foo/bar->http://bar/foo->/barwould loose that inbetween step and therefore lead to a wrong result if just the last relative url would have been returned).