check_html_usage
Validates HTML using web components against their Custom Elements Manifest to catch invalid slot names, wrong enum values, boolean misuse, and unknown attributes with typo suggestions.
Instructions
Validates consumer HTML against a component CEM — catches invalid slot names, wrong enum attribute values, boolean attribute misuse, and unknown attributes with typo suggestions. Run this on any HTML using web components to catch markup mistakes.
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 to validate against the component CEM. | |
| tagName | Yes | The custom element tag name to validate against (e.g. "sl-button"). |