Skip to content

data export

Marcos Cáceres edited this page Mar 17, 2022 · 14 revisions

Guides

Configuration options

W3C Configuration options

Linter rules

Internal properties

Handled by ReSpec for you.

Special <section> IDs

HTML elements

Custom Elements

WebIDL

HTML attributes

CSS Classes

Special properties

Clone this wiki locally

export

Use <dfn class="export"> to export a definition to W3C's Webref database.

  • Your spec needs to be part of the browser specs to be indexed by Webref.
  • Only export things that other specifications need! (e.g., special objects, specific algorithms).
  • WebIDL things are automatically exported for you.
<p>The <dfn class="export">fancy thing</dfn> can be used by other specs.</p>

Then other specs can use "fancy thing" using xref, like so:

<script>
  var respecConfig = {
    xref: true,
  };
</script>

<p data-cite="spec-shortname">
  We can now link to <a>fancy thing</a> in another spec.
</p>