The resolved absolute identifier
While RFC 3986 § 5 defines a path-merging algorithm that technically applies to all URI schemes, opaque identifiers
lack a hierarchical path structure, making relative resolution semantically undefined in practice. The WHATWG
URL Standard follows RFC 6454, which assigns opaque origins (serialized as the string "null") to such URIs,
explicitly preventing same-origin comparisons and relative resolution.
This implementation aligns with WHATWG/URL API behavior by rejecting relative references against opaque bases, providing clearer error semantics than the underlying URL API.
Resolves a reference against a base identifier.
baseandreferenceto produce an absolute identifierurn:,mailto:): Absolute references are returned unchanged; relative references cannot be resolved and throw an error