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 String

From Leeroopedia
Knowledge Sources
Domains JavaScript_Atoms, Vendored_Library
Last Updated 2026-02-12 00:00 GMT

Overview

Vendored Google Closure Library module providing string manipulation utilities used by Selenium JavaScript atoms.

Description

goog.string is a vendored copy of the Google Closure Library module. It is the primary string utilities namespace, providing functions for string manipulation including startsWith, endsWith, case-insensitive comparisons, HTML escaping (with optional double-escape detection), Unicode constants (NBSP, ZERO_WIDTH_SPACE), and various string transformation helpers. It delegates to goog.string.internal for core implementations. Selenium uses this as part of its JavaScript atom infrastructure.

Usage

This module is consumed internally by Selenium's JavaScript atoms build system. Not imported directly by end users.

Code Reference

Source Location

Key Exports

goog.provide('goog.string');
goog.provide('goog.string.Unicode');

goog.string.DETECT_DOUBLE_ESCAPING = goog.define('goog.string.DETECT_DOUBLE_ESCAPING', false);
goog.string.FORCE_NON_DOM_HTML_UNESCAPING = goog.define('goog.string.FORCE_NON_DOM_HTML_UNESCAPING', false);
goog.string.Unicode = { NBSP: '\xa0', ZERO_WIDTH_SPACE: '\u200b' };
goog.string.startsWith = goog.string.internal.startsWith;
goog.string.endsWith = goog.string.internal.endsWith;

Related Pages

Page Connections

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