-
-
Notifications
You must be signed in to change notification settings - Fork 424
Marcos Caceres edited this page Mar 27, 2026
·
12 revisions
Type: boolean | string | MdnOptions
Default: undefined
Adds MDN browser compatibility annotations to relevant sections of the specification. Annotations are shown as expandable panels in the right margin, sourced from MDN's browser-compat-data via the mdn-spec-links project.
var respecConfig = {
shortName: "payment-request",
mdn: true,
};var respecConfig = {
mdn: "payment-request",
};var respecConfig = {
mdn: {
key: "payment-request",
maxAge: 3600000, // 1 hour cache
},
};| Option | Type | Default | Description |
|---|---|---|---|
key |
string |
shortName |
Key used to look up MDN data. Browse keys at SPECMAP.json. |
baseJsonPath |
string |
https://w3c.github.io/mdn-spec-links/ |
Custom base URL for MDN spec links data |
maxAge |
number |
86400000 |
Cache duration in milliseconds (default: 24 hours) |
- MDN annotations are collapsed by default — click to expand a panel showing browser support and a link to MDN
- Each panel shows an engine support summary (✅ all engines / 🚫 limited) and per-browser version data
- Annotations appear next to relevant section IDs that match MDN's data — not all sections will have annotations
- To find the right key, look up your spec URL in SPECMAP.json
💖 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
- implementationStatus
- 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