Implementation:SeleniumHQ Selenium Sizzle
| 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
- Repository: SeleniumHQ_Selenium
- File: third_party/js/sizzle/sizzle-raw.js
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
};