check_attribute_conflicts
Identifies missing guard conditions for conditional attributes in custom elements, such as 'target' without 'href' or 'checked' without type='checkbox'.
Instructions
Detects conditional attributes used without their guard conditions — catches "target" without "href", "min"/"max" on non-number inputs, "checked" without type="checkbox", and other attribute interaction mistakes. Parses CEM member descriptions for "Only used when" and "Only applies to" patterns.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| libraryId | No | Optional library ID to target a specific loaded library instead of the default. | |
| htmlText | Yes | The HTML code containing the component to check for attribute conflicts. | |
| tagName | Yes | The custom element tag name to validate against (e.g. "sl-button"). |