mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-06 04:42:24 +00:00
feat(security): migrate dashboard innerHTML to safe DOM APIs
- Replace innerHTML with document.createElement and replaceChildren in dashboard/index.html - Add dashboard/domUtils.js for safe HTML escaping and element creation - Add context, decisions, and test logs - Update daily task logs Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
45194e7282
commit
b92f0efd38
13 files changed
+261
-76
No files matched your search
@@ -0,0 +1,12 @@
|
||||
# Context: innerHTML Migration for dashboard/index.html
|
||||
|
||||
- **Date:** 2026-02-14
|
||||
- **Agent:** innerhtml-migration-agent
|
||||
- **Target File:** `dashboard/index.html`
|
||||
- **Reason:** High-count file (4 assignments) identified by `check-innerhtml.mjs`.
|
||||
- **Node Version:** v22.22.0
|
||||
- **Plan:**
|
||||
1. Migrate `summaryBar` and `lockGrid` rendering to use `document.createElement`.
|
||||
2. Use `replaceChildren()` for clearing containers.
|
||||
3. Create `dashboard/domUtils.js` for `escapeHtml` helper.
|
||||
4. Verify with linting and manual code review (smoke test logic).
|
||||
Reference in new issue
Block a user