Implementation:SeleniumHQ Selenium Closure Url
| Knowledge Sources | |
|---|---|
| Domains | JavaScript_Atoms, Vendored_Library |
| Last Updated | 2026-02-12 00:00 GMT |
Overview
Vendored Google Closure Library module providing browser-native URL parsing and resolution.
Description
Class for parsing strings into URLs using browser native resolution. Follows the WHATWG URL standard where possible, with polyfills and consistency fixes for older browsers (e.g. IE, EdgeHTML). Provides resolveUrl, resolveRelativeUrl, and createUrl functions. This is the preferred replacement for the deprecated goog.Uri package when working with browser-interpreted URLs.
Usage
Consumed internally by Selenium's JavaScript atoms build system.
Code Reference
Source Location
- Repository: SeleniumHQ_Selenium
- File: third_party/closure/goog/url/url.js
Key Exports
goog.module('goog.url');
exports.setUrlBaseForTesting = setUrlBaseForTesting;
exports.ReadonlySearchParams = ReadonlySearchParams;
exports.UrlLike = UrlLike;
exports.resolveUrl = resolveUrl;
exports.getSearchParams = getSearchParams;
exports.resolveRelativeUrl = resolveRelativeUrl;
exports.UrlPrimitivePartsPartial = UrlPrimitivePartsPartial;
exports.createUrl = createUrl;