Skip to content

Document that element and attribute names are rendered unescaped - #332

Merged
markuswustenberg merged 3 commits into
maragudk:mainfrom
maragubot:document-trusted-names
Jul 29, 2026
Merged

Document that element and attribute names are rendered unescaped#332
markuswustenberg merged 3 commits into
maragudk:mainfrom
maragubot:document-trusted-names

Conversation

@maragubot

Copy link
Copy Markdown
Contributor

State the escaping contract in doc comments: names passed to `El`, `Attr`, `html.Aria`, `html.Data`, and `components.JoinAttrs` are rendered unescaped and must be trusted values, never user-controlled data, while attribute values and text are escaped. Also note this in the `gomponents` package doc.

See maragudk#330
@codecov

codecov Bot commented Jul 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (bae8af6) to head (b11eba0).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #332   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines          639       639           
=========================================
  Hits           639       639           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@markuswustenberg
markuswustenberg merged commit d1fd82b into maragudk:main Jul 29, 2026
15 checks passed
@maragubot
maragubot deleted the document-trusted-names branch July 29, 2026 09:16
markuswustenberg added a commit that referenced this pull request Jul 29, 2026
- Add `docs/diary/2026-07-29-issue-330-docs-and-security-policy.md`, an
implementation diary covering the #330 assessment and the three
resulting PRs (#331, #332, #333) — including the subagent worktree
stale-base incident and other failures worth remembering.
- First entry in a new `docs/diary/` directory.
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.

2 participants