Skip to content

Docs: note accepted gap for enabled input value inside hidden wrapper#184

Merged
twschiller merged 1 commit into
mainfrom
worktree-swift-imagining-cupcake
Jun 5, 2026
Merged

Docs: note accepted gap for enabled input value inside hidden wrapper#184
twschiller merged 1 commit into
mainfrom
worktree-swift-imagining-cupcake

Conversation

@twschiller
Copy link
Copy Markdown
Contributor

Summary

Doc-only follow-up to the #179 audit of INJECTION_PATTERNS coverage after #176. Adds a paragraph to attribute-injection-sanitize's docstring describing the one accepted gap: an enabled <input value="…"> sitting inside a CSS-hidden wrapper is no longer scrubbed (pre-#176, hidden-text-strip's wrapper detach took it).

The same asymmetry as the existing input[disabled][value] case applies (user can't see or edit), but closing it would need a computed-style check at scrub time, which conflicts with the rule's lightweight attribute-driven watcher. Documented as accepted; trigger surface is narrow.

The other two audit gaps are tracked as separate issues:

Test plan

  • bun run check in extension/ clean
  • No runtime change — docstring only

Pre-#176, an enabled `<input value="…">` inside a CSS-hidden wrapper was
caught by `hidden-text-strip`'s wrapper detach. After #176 nothing
covers it. Document as accepted in `attribute-injection-sanitize`'s
docstring — closing it cleanly would require computed-style checks
inside the rule's attribute-driven watcher.

Audit context: #179. Other gaps from that audit are tracked as #182
(missing ARIA attributes) and #183 (`input[type="hidden"][value]`).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agent-browser-shield-demo-site Ready Ready Preview, Comment Jun 5, 2026 9:49pm

Request Review

@twschiller twschiller merged commit 5a51485 into main Jun 5, 2026
7 checks passed
@twschiller twschiller deleted the worktree-swift-imagining-cupcake branch June 5, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant