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 EventTarget

From Leeroopedia
Revision as of 11:50, 16 February 2026 by Admin (talk | contribs) (Auto-imported from implementations/SeleniumHQ_Selenium_Closure_EventTarget.md)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Sources
Domains JavaScript_Atoms, Vendored_Library
Last Updated 2026-02-12 00:00 GMT

Overview

Vendored Google Closure Library module providing a disposable implementation of a custom listenable/event target with full W3C EventTarget-like support, used by Selenium JavaScript atoms.

Description

goog.events.EventTarget is a vendored copy of the Google Closure Library module. It provides an implementation of goog.events.Listenable with full W3C EventTarget-like support including capture/bubble mechanism, stopping event propagation, and preventing default actions. It can be subclassed to turn any class into a Listenable, and supports event bubbling to parent event targets. 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.events.EventTarget');

// Constructor: goog.events.EventTarget()
// Extends: goog.Disposable
// Implements: goog.events.Listenable
// Key methods: listen, unlisten, dispatchEvent, getParentEventTarget, setParentEventTarget

Related Pages

Page Connections

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