Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:SeleniumHQ Selenium Closure Url

From Leeroopedia
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

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;

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment