exclude - speced/respec GitHub Wiki
Opts an element out of specific ReSpec processing.
<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>| 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
|
- Use on IDL blocks that are illustrative examples, not normative definitions that should appear in the IDL index
- The
.excludeclass does not prevent the element from being rendered — it only opts out of specific ReSpec transformations