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 Dom TagName

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

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

Related Pages

Page Connections

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