makestatic-verify-id

1.0.11 • Public • Published

Verify Id

Verify id attributes are unique

For each HTML file check that id attributes are unique to the document.



Install

yarn add makestatic-verify-id

API

VerifyId

Verify id attributes in HTML documents are unique.

See Also

.after

VerifyId.prototype.after(context, options)

Verifies that id attributes are unique in each HTML document.

When strict is disabled an error is not thrown but a warning message is logged.

  • context Object the processing context.
  • options Object the plugin options.
Options
  • strict Boolean=true warn rather than error when false.
Throws
  • Error if no resource graph is available.
  • Error when a duplicate id attribute is detected in strict mode.

License

MIT


Created by mkdoc on March 12, 2017

Package Sidebar

Install

npm i makestatic-verify-id

Weekly Downloads

2

Version

1.0.11

License

MIT

Last publish

Collaborators

  • tmpfs