-
-
Notifications
You must be signed in to change notification settings - Fork 392
data dfn type
Sid Vishnoi edited this page Jul 8, 2020
·
9 revisions
You can add a data-dfn-type
attribute on <dfn>
elements to declare the type of definition. This is used in conjunction with data-link-type
to allow linking to a definition of particular type.
In many cases, you do not need to provide this value. If a <dfn>
has a data-dfn-for
context, data-dfn-type
is treated as "idl"
. Otherwise, it is to be "dfn"
.
Currently, only two values: "idl"
and "dfn"
are supported. In future, more values might be supported.
<p>
The document has visibility state of
<dfn id="dfn-hidden" data-dfn-type="dfn">hidden</dfn>.
</p>
<p>
`visibilityState` attribute has value
<dfn id="idl-hidden" data-dfn-type="idl">hidden</dfn>.
</p>
<p>
{{ hidden }} links to dfn with id="idl-hidden". This is same
<a data-link-type="idl">hidden</a>, but above syntax is preferred.
</p>
<p>
[= hidden =] links to dfn with id="dfn-hidden". This is same
<a data-link-type="dfn">hidden</a>, but above syntax is preferred.
</p>
💖 Support ReSpec by becoming a sponsor via Open Collective. 💖
✨ View rendered version of this documentation at https://respec.org/docs/ ✨
- addSectionLinks
- authors
- caniuse
- edDraftURI
- editors
- favicon
- format (markdown)
- formerEditors
- github
- highlightVars
- isPreview
- license
- lint
- localBiblio
- logos
- maxTocLevel
- mdn
- modificationDate
- noTOC
- otherLinks
- pluralize
- postProcess
- preProcess
- previousDiffURI
- previousMaturity
- previousPublishDate
- prevRecShortname
- prevRecURI
-
processVersion(Deprecated) - publishDate
-
refNote(Deprecated) - shortName
- specStatus
- subjectPrefix
- subtitle
- testSuiteURI
- xref
- additionalCopyrightHolders
-
addPatentNote(Deprecated) - alternateFormats
- canonicalURI
- charterDisclosureURI
- copyrightStart
- crEnd
-
darkMode(deprecated, use dark mode) - doJsonLd
- errata
- group
- implementationReportURI
- lcEnd
- level
- noRecTrack
- prevED
- submissionCommentNumber
-
wg(Deprecated) -
wgId(Deprecated) -
wgPatentPolicy(Deprecated) -
wgPatentURI(Deprecated) - wgPublicList
-
wgURI(Deprecated)
a11y
check-punctuation
local-refs-exist
no-headingless-sections
no-http-props
no-unused-vars
no-unused-dfns
informative-dfn
privsec-section
wpt-tests-exist
Handled by ReSpec for you.
- data-abbr
-
data-cite(Not recommended) - data-dfn-for
- data-dfn-type
- data-format
- data-include-format
- data-include-replace
- data-include
- data-link-for
- data-link-type
- data-local-lt
- data-lt-no-plural
- data-lt-noDefault
- data-lt
- data-number
- data-oninclude
- data-sort
- data-tests
-
data-transform(Deprecated) - data-type
- dir
- lang