Implementation:SeleniumHQ Selenium Closure String Internal
| Knowledge Sources | |
|---|---|
| Domains | JavaScript_Atoms, Vendored_Library |
| Last Updated | 2026-02-12 00:00 GMT |
Overview
Vendored Google Closure Library module providing internal string utility functions used by Selenium JavaScript atoms.
Description
goog.string.internal is a vendored copy of the Google Closure Library module. It contains string functions called from Closure packages that could not depend on each other, serving as the internal implementation that goog.string delegates to. It provides startsWith, endsWith, caseInsensitiveStartsWith, caseInsensitiveEndsWith, caseInsensitiveEquals, and caseInsensitiveCompare functions. 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/internal.js
- Lines: 1-395
Key Exports
goog.provide('goog.string.internal');
goog.string.internal.startsWith = function(str, prefix) { ... };
goog.string.internal.endsWith = function(str, suffix) { ... };
goog.string.internal.caseInsensitiveStartsWith = function(str, prefix) { ... };
goog.string.internal.caseInsensitiveEndsWith = function(str, suffix) { ... };