|ext:resolve-pathname pathname &optional base||[Function]|
Resolve the relative pathname against the base pathname using the algorithm given in RFC2396. For the pathname directory, name and type components the customary case of the base is mapped to the customary case for the pathname. If the relative pathname has a relative directory then it is resolved against the base only if the scheme and authority component match. When a new relative pathname is created using the base then the class of the result is the same as the base pathname.