Skip to content
Sid Vishnoi edited this page Jul 8, 2020 · 10 revisions

local-refs-exist

Enable this lint rule to get a warning if there are some href's that link to nonexistent id's in a spec.

For example:

<section id="foo"><!-- content --></section>

<a href="#bar">baz</a>
<!-- #bar doesn't exist in document -->

You'll receive a warning pointing you to the links that are broken.

var respecConfig = {
  lint: {
    "local-refs-exist": true,
  },
};
example warning for local-refs-exist

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