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

.removeOnSave

Marks an element to be removed when the document is exported to static HTML (via "Save as HTML"). Use this for content that is useful during authoring but should not appear in the published spec.

Usage

<div class="removeOnSave">
  <p class="ednote">Remember to update the SotD before publication.</p>
</div>
<p>
  See <a href="https://respec.org/xref" class="removeOnSave">(xref search)</a>
  for resolving ambiguous terms.
</p>

Notes

  • The ReSpec pill itself uses removeOnSave — it disappears from saved HTML
  • The caniuse and mdn widgets also use removeOnSave by default (configurable via removeOnSave option)
  • Content with class="removeOnSave" is fully removed — not just hidden — in the exported HTML

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