-
-
Notifications
You must be signed in to change notification settings - Fork 419
data dfn type
Applies to: <dfn>
Declares the type of a definition. Used by the xref system to enable type-specific linking with [= =], {{ }}, and data-link-type.
In most cases you do not need this attribute — ReSpec infers the type automatically. IDL types (interface, method, attribute, etc.) are set automatically when a <dfn> is inside a <pre class="idl"> block.
<p>To <dfn data-dfn-type="abstract-op">process a widget</dfn>, run these steps:</p><p>The <dfn data-dfn-type="http-header">Widget-Policy</dfn> response header...</p>| Value | Use for |
|---|---|
dfn |
General concepts and prose definitions (default when no type is set) |
abstract-op |
Abstract operations (algorithm steps) |
element |
HTML/SVG/MathML element names |
element-attr |
Content attributes of HTML/SVG elements |
attr-value |
Values of element attributes |
element-state |
States of elements (e.g. checkbox states) |
event |
DOM event types |
http-header |
HTTP header names |
media-type |
MIME types |
scheme |
URL schemes |
permission |
Permission strings (e.g. for the Permissions API) |
When <dfn> elements are inside a <pre class="idl"> WebIDL block, ReSpec automatically sets the dfn type from the IDL declaration. You don't set these manually:
interface, attribute, method, dictionary, dict-member, enum, enum-value, callback, typedef, namespace, constructor
- The
[= term =]shorthand links todfnorabstract-optype definitions - The
{{ term }}shorthand links to IDL type definitions - When
data-dfn-foris set, type defaults to IDL unless explicitly overridden - If unsure, omit
data-dfn-typeand let ReSpec infer it
💖 Support ReSpec by becoming a sponsor via Open Collective. 💖
✨ View rendered version of this documentation at https://respec.org/docs/ ✨
- Getting Started
- How Do I…
- Spec Editor's Guide
- Writing Algorithms
- WebIDL Guide
- Configuring ReSpec
- Developers Guide
- Shorthands
- addSectionLinks
- authors
- caniuse
- edDraftURI
- editors
- format (markdown)
- formerEditors
- github
- highlightVars
- isPreview
- license
- lint
- localBiblio
- logos
- maxTocLevel
- mdn
- modificationDate
- monetization
- noTOC
- otherLinks
- pluralize
- postProcess
- preProcess
- previousDiffURI
- previousMaturity
- previousPublishDate
- prevRecShortname
- prevRecURI
-
processVersion(Removed) - publishDate
- shortName
- specStatus
- subjectPrefix
- subtitle
- testSuiteURI
- xref
- additionalCopyrightHolders
-
addPatentNote(Removed) - alternateFormats
- canonicalURI
- charterDisclosureURI
- copyrightStart
- crEnd
- dark mode
- doJsonLd
- errata
- group
- implementationReportURI
- level
- noRecTrack
- prevED
- prEnd
- submissionCommentNumber
-
wg(Deprecated — usegroup) -
wgId(Deprecated — usegroup) -
wgPatentURI(Deprecated — usegroup) -
wgPublicList(Deprecated — usegroup) -
wgURI(Deprecated — usegroup)
a11ycheck-charsetcheck-internal-slotscheck-punctuationinformative-dfnlocal-refs-existno-captionless-tablesno-headingless-sectionsno-http-propsno-link-warningsno-unused-dfnsno-unused-varsprivsec-sectionwpt-tests-exist
Handled by ReSpec for you.
- conformance
- idl-index
- index
- issue-summary
- references
- tof (Table of Figures)
- data-abbr
- data-cite
- data-dfn-for
- data-dfn-type
- data-export
- data-format
- data-include
- data-include-format
- data-include-replace
- data-link-for
- data-link-type
- data-local-lt
- data-lt
- data-lt-no-plural
- data-lt-noDefault
- data-max-toc
- data-number
- data-oninclude
- data-sort
- data-tests
-
data-transform(Deprecated) - data-type
- dir
- lang