Parses url using URL constructor or fallback to anchor element and serialize it to a string.
Performs the steps described in https://html.spec.whatwg.org/multipage/urls-and-fetching.html#parse-a-url
See https://github.com/open-telemetry/opentelemetry-js/issues/3174
Parses url using URL constructor or fallback to anchor element and serialize it to a string.
Performs the steps described in https://html.spec.whatwg.org/multipage/urls-and-fetching.html#parse-a-url