Skip to content
Marcos Caceres edited this page Mar 27, 2026 · 6 revisions

publishDate

Type: string Default: document's last-modified date

The publication date of this version of the document, in "YYYY-MM-DD" format. For Editor's Drafts and unofficial documents, leave this unset — ReSpec uses the document's last-modified date automatically. For documents being published to W3C TR/, set this explicitly.

Basic usage

var respecConfig = {
  publishDate: "2025-06-15",
};

Notes

  • Format must be "YYYY-MM-DD"
  • For "ED" status, omit this — ReSpec uses the browser's last-modified date, which is always current
  • For published documents ("WD", "CR", "REC", etc.), set this to the actual publication date
  • The browser's last-modified date can occasionally be wrong due to server timezone issues — if you see wrong dates on "ED" specs, set publishDate explicitly

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