Skip to content


Marcos Cáceres edited this page Nov 8, 2021 · 9 revisions


Configuration options

W3C Configuration options

Linter 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


Takes an array of JavaScript functions which ReSpec then runs in order. Each function is called with the ReSpec config object (i.e., the var respecConfig object, plus some additional internal data).

The following examples shows two functions run in order after processing.

function doThing(config){...}
function doOtherThing(config){...}

var respecConfig = {
  // After processing, run the following
  postProcess: [doThing, doOtherThing]

Note: there are no special requirements or "best practices" for how you process HTML either before or after ReSpec has finished doing its thing. Once ReSpec is finished processing the document, it stops running and you a free to do whatever you like to your document. Having said that, you should follow web development best practices for Web Development when manipulating any generated document (i.e., "it's just HTML, JS, and CSS").