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 Sizzle

From Leeroopedia
Knowledge Sources
Domains JavaScript_Atoms, Vendored_Library
Last Updated 2026-02-12 00:00 GMT

Overview

Vendored Sizzle CSS Selector Engine used for CSS selector-based element location.

Description

Sizzle is a pure-JavaScript CSS selector engine originally developed by The Dojo Foundation (now jQuery Foundation). It implements CSS selector matching and querying against DOM trees. The raw/unminified version is vendored here. Sizzle powers Selenium's CSS selector element location strategy as a fallback for browsers that may lack native querySelectorAll support or where extended selectors are needed. Released under the MIT, BSD, and GPL licenses.

Usage

Used by Selenium's JavaScript atoms for CSS selector-based element location (By.cssSelector).

Code Reference

Source Location

Key Details

/*!
 * Sizzle CSS Selector Engine
 *  Copyright 2011, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */

var Sizzle = function(selector, context, results, seed) {
    // CSS selector matching engine
    // Supports combinators: >, +, ~, space
    // Supports pseudo-selectors, attribute selectors, ID/class/tag selectors
};

Related Pages

Page Connections

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