Implementation:SeleniumHQ Selenium Closure Dom TagName
| Knowledge Sources | |
|---|---|
| Domains | JavaScript_Atoms, Vendored_Library |
| Last Updated | 2026-02-12 00:00 GMT |
Overview
Vendored Google Closure Library module providing HTML tag name constants used by Selenium JavaScript atoms.
Description
goog.dom.TagName is a vendored copy of the Google Closure Library module. It defines the goog.dom.TagName class whose constants enumerate all HTML tag names specified in the W3C HTML 4.01 index of elements and the HTML5.1 specification. Each constant is a typed string backed by a template parameter mapping to the corresponding HTMLElement type (e.g., TagName.A maps to HTMLAnchorElement). Selenium uses this as part of its JavaScript atom infrastructure for browser automation commands.
Usage
This module is consumed internally by Selenium's JavaScript atoms build system. It is not imported directly by end users.
Code Reference
Source Location
- Repository: SeleniumHQ_Selenium
- File: third_party/closure/goog/dom/tagname.js
- Lines: 1-456
Key Exports
goog.provide('goog.dom.TagName');
// goog.dom.TagName class with static cast(name, type) method
// Sample constants (full list enumerates all HTML4.01/HTML5.1 elements):
goog.dom.TagName.A // HTMLAnchorElement
goog.dom.TagName.BUTTON // HTMLButtonElement
goog.dom.TagName.DIV // HTMLDivElement
goog.dom.TagName.FORM // HTMLFormElement
goog.dom.TagName.IMG // HTMLImageElement
goog.dom.TagName.INPUT // HTMLInputElement
goog.dom.TagName.SELECT // HTMLSelectElement
goog.dom.TagName.SPAN // HTMLSpanElement
goog.dom.TagName.TABLE // HTMLTableElement
goog.dom.TagName.TEXTAREA // HTMLTextAreaElement