Skip to content

th-content-restrictions

Detect disallowed elements inside th.

Severity

error

❌ Incorrect

html
<table><tr><th><header>x</header></th></tr></table>

✅ Correct

html
<table><tr><th>text</th></tr></table>

Reference

Configuration

json
{
  "rules": {
    "th-content-restrictions": "error"
  }
}

Released under the MIT License.