makestatic-verify-id
v1.0.11
Published
Verify id attributes are unique
Downloads
2
Maintainers
Readme
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 whenfalse
.
Throws
Error
if no resource graph is available.Error
when a duplicate id attribute is detected instrict
mode.
License
MIT
Created by mkdoc on March 12, 2017