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

.exclude

Opts an element out of specific ReSpec processing.

Usage

<p>
  <abbr class="exclude" title="Application Programming Interface">API</abbr>
  is not automatically expanded here.
</p>
<aside class="example" title="Hypothetical API">
  <pre class="idl exclude">
  interface Example {
    undefined hypotheticalMethod();
  };
  </pre>
</aside>

Supported elements

Element Effect of .exclude
<abbr class="exclude"> Prevents the abbreviation from being automatically expanded
<pre class="idl exclude"> Excludes this WebIDL block from the idl-index

Notes

  • Use on IDL blocks that are illustrative examples, not normative definitions that should appear in the IDL index
  • The .exclude class does not prevent the element from being rendered — it only opts out of specific ReSpec transformations

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