Skip to content
GitLab
    • Why GitLab
    • Pricing
    • Contact Sales
    • Explore
  • Why GitLab
  • Pricing
  • Contact Sales
  • Explore
  • Sign in
  • Get free trial
  • html-validate
  • html-validate
  • Issues
  • #52

Rule void documentation discrepancy

Documentation for rule void lists the style "selfclosing" while the implementation uses "selfclose".

Additionally the rule defaults to "any" for invalid inputs thus allowing any style making it hard to detect the error.

Reduced test-case

Given this configuration:

"rules": {
    "void": [ "warn", { "style": "selfclosing" } ]
}

and a markup as:

<hr>

Expected result

An error about <hr> not being self-closed.

Actual result

No error.

Assignee
Assign to
Time tracking