Skip to content

Z120: UNKNOWN_HTML_ATTRIBUTE

  • Severity: Error


    Penalty: 0.0 points | Category: general

  • Remediation & Opt-In


    Auto-Fixable: No | Opt-In: No


Rationale

Emitted by the Polyglot Extractor when an HTML tag (<a> or <img>) in Markdown contains an attribute that is not in the Safe-Core attribute whitelist.


How to Fix

Remove unapproved custom HTML attributes or use data-zenzic-ignore to suppress intentional custom attributes.

  • Failing Pattern (Triggers Z120)


    docs/example.md
    <a href="/docs" custom-unknown-attr="value">Docs</a>
    
  • Passing Pattern (Resolves Z120)


    docs/example.md
    <a href="/docs" target="_blank" rel="noopener">Docs</a>
    

Reference

See the Finding Codes Index for finding code details.