Skip to content
Marcos Cáceres edited this page Jun 24, 2020 · 14 revisions

data-export

Use the data-export to export a <dfn> definition to W3C's Shepherd database.

⚠️ Only export things that other specifications might use (e.g., specific algorithms).

If you'd like to have your specification indexed in Shepherd, please email [email protected].

Note: WebIDL things are automatically exported for you.

Example

<p>
  The <dfn data-export="">fancy thing</dfn> can be used by other specs.  
</p>

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

var respecConfig = { 
  // other config options here...
  xref: ["spec-shortname"],
}

And:

<p>
  We can now link to <a>fancy thing</a> in another spec.
</p>

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