Skip to content
Sid Vishnoi edited this page Aug 24, 2022 · 17 revisions

This page lists some common ReSpec errors and their mitigation.

Couldn't match TERM to anything in the document or in any other document cited in this specification {#error-term-not-found}

Screenshot of a ReSpec definition linking error

To fix this issue, follow these steps:

Is the term defined in some other document/specification?

  1. Search for the term using XRef Search UI. If the term is found:
    1. If the error message above does not contain the specification where term is defined, add the specification shortname to xref's specs.
    2. Otherwise, the error is due to an invalid for-context (i.e., term is defined in-context of some other term) or type-context (like referencing an exception using syntax meant for referencing concepts). Copy-paste the "How to Cite" of the relevant match from XRef Search UI.
  2. If the term is not found:
    1. Try searching for similar terms. The term might not be defined exactly. Use the shorthands syntax to alias the term in prose if needed.
    2. Check if the term is exported from the other spec, i.e., the <dfn> should have a "export" css class.
      1. If the term is not exported, ask the specification editors to export it. Feel free to ping ReSpec maintainers if you need help.
      2. If the term is exported but not found through XRef Search UI, then the specification might not be in our database. Please file an issue at ReSpec repository or contact ReSpec maintainers by other means.
        1. Note: Terms from ECMA/IETF specifications are not presently available in the terms database. Use the data-cite attribute to reference those terms.

Is the term defined in same document?

  1. If it's a WebIDL term:
    1. Remember that WebIDL terms are case-sensitive.
    2. Use the WebIDL linking syntax.
    3. Provide proper for-context using either WebIDL linking syntax or data-link-for.
  2. If it's not a WebIDL term (i.e., it's a "concept"):
    1. Use the Concepts linking syntax
    2. Provide proper for-context using either Concepts linking syntax or data-link-for.

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