Skip to content

refactor(dom): replaceChildren/append and Promise.allSettled - #56

Merged
piotrl merged 1 commit into
masterfrom
claude/dom-fetch-cleanup-745dff
Nov 3, 2026
Merged

piotrl merged 1 commit into
masterfrom
claude/dom-fetch-cleanup-745dff

Conversation

@piotrl

@piotrl piotrl commented Nov 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replace clearChildren + appendChild loops with replaceChildren / append.
  • createTopLanguagesList now returns HTMLLIElement[] built with textContent; escapeHtml removed. XSS test kept: <img src=x onerror=alert(1)> renders as text.
  • loadRepositoriesLanguages uses Promise.allSettled; callback signature unchanged. Results now arrive in request order.

Test plan

  • npm run build:check (118 tests pass)

🤖 Generated with Claude Code

- replaceChildren/append instead of clearChildren, appendChild loops
- createTopLanguagesList returns HTMLLIElement[] built with textContent; drop escapeHtml
- loadRepositoriesLanguages uses Promise.allSettled

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@piotrl
piotrl force-pushed the claude/dom-fetch-cleanup-745dff branch from c857b25 to 23c2b97 Compare November 3, 2026 21:17
@piotrl
piotrl merged commit ad4bae1 into master Nov 3, 2026
1 check passed
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