Implementation:SeleniumHQ Selenium Closure String
| 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
- Repository: SeleniumHQ_Selenium
- File: third_party/closure/goog/string/string.js
- Lines: 1-1494
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;