You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rules do not see controls inside a declarative shadow root (<template shadowrootmode>) #922
A page built with web components can render its controls inside a declarative shadow root, using <template shadowrootmode="open">. The browser parser attaches that template's content as the host's shadow root and renders it. squirrelscan parses the page with linkedom, which keeps the content inside the template's content fragment. document.querySelectorAll never reaches it there, so no rule sees those controls.
For example, this button has no accessible name. Chromium renders it, but a11y/button-name does not report it:
Shipped in v0.0.144 (commits 6c1a0fd, 7d7f353, 206e8e4). Checked every acceptance criterion against current main: controls inside a declarative shadow root are visible to the rules, with tests.
Activity
fix(parser): inline declarative shadow roots so rules see their contr…
fix(parser): shadow roots keep their own id scope, drop replaced slot…
fix(parser,rules): strip the internal shadow id scope from findings; …
fix(parser): inline declarative shadow roots so rules see their contr…
fix(parser): shadow roots keep their own id scope, drop replaced slot…
fix(parser,rules): strip the internal shadow id scope from findings; …
nc9 commentedon Oct 30, 2026
Shipped in v0.0.144 (commits 6c1a0fd, 7d7f353, 206e8e4). Checked every acceptance criterion against current main: controls inside a declarative shadow root are visible to the rules, with tests.
nik