Skip to main content
Glama

check_shadow_dom_js

Analyzes JavaScript code for anti-patterns that break Shadow DOM encapsulation, such as accessing shadowRoot.querySelector or overwriting slot content.

Instructions

Detects JavaScript anti-patterns that violate Shadow DOM encapsulation from consumer code. Catches: accessing .shadowRoot.querySelector() to bypass encapsulation, calling attachShadow() on existing components, setting innerHTML on web components (overwriting slot content), and using style.cssText instead of CSS custom properties.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeTextYesJavaScript/TypeScript code to analyze
tagNameNoOptional tag name of the web component for context-aware checks (e.g., "sl-button")

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bookedsolidtech/helixir'

If you have feedback or need assistance with the MCP directory API, please join our Discord server