The list below shows how various target urls are resolved by a
base URL object.
The base URL is created with the constructor code
new URL("http://a/b/c/d;p?q")
.
This base URL, the target urls, and the expected resolved urls
are from IETF RFC 2396 Appendix C.
There are 42 target urls.
Results are shown only when the actual resolved url differs from
RFC 2396 expectations.
Four errors are expected from the design of the URL class. Two are due to RFC 2396 expectations of "(current document)", which has the effect of coupling the user agent (browser) into the concept of url resolution.