check_slot_children
Check that slot children match expected element types from the Custom Elements Manifest, catching invalid children like inside that requires .
Instructions
Validates that children placed inside a web component's slots match the expected element types from the CEM — catches wrong child elements in constrained slots (e.g. putting a inside which requires ). Parses slot descriptions for "Must be", "Works best with", and "Accepts" 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 and its children to validate. | |
| tagName | Yes | The parent custom element tag name to check slot children for (e.g. "sl-select"). |