Skip to content
Marcos Caceres edited this page Mar 28, 2026 · 2 revisions

window.respecVersion

When ReSpec loads, it sets window.respecVersion to a semver string identifying the current version (e.g., "35.8.0").

Usage

console.log(window.respecVersion); // "35.8.0"

Notes

  • Also accessible via document.respec.version
  • In development builds: returns "Developer Edition" instead of a version number
  • Useful for debugging or for scripts that need to adapt to specific ReSpec versions

Guides

Configuration options

W3C Configuration options

Linting rules

Internal properties

Handled by ReSpec for you.

Special <section> IDs

HTML elements

Custom Elements

HTML attributes

CSS Classes

Special properties

Clone this wiki locally