Skip to content

Files

Latest commit

 

History

History
30 lines (21 loc) · 512 Bytes

valid-attribute-name.md

File metadata and controls

30 lines (21 loc) · 512 Bytes

Pattern: Invalid attribute name

Issue: -

Description

This rule detects invalid HTML attributes.

<template>
  <!-- ✓ GOOD -->
  <p foo.bar></p>
  <p foo-bar></p>
  <p _foo.bar></p>
  <p :foo-bar></p>

  <!-- ✗ BAD -->
  <p 0abc></p>
  <p -def></p>
  <p !ghi></p>
</template>

Further Reading