mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-13 08:11:18 +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,21 @@
|
||||
---
|
||||
agent: innerhtml-migration-agent
|
||||
status: completed
|
||||
date: 2026-02-14
|
||||
---
|
||||
|
||||
# innerHTML Migration: dashboard/index.html
|
||||
|
||||
- **Target:** `dashboard/index.html`
|
||||
- **Action:** Replaced unsafe `innerHTML` assignments with `document.createElement`, `textContent`, and `replaceChildren`.
|
||||
- **Helpers:** Created `dashboard/domUtils.js` for `escapeHtml`.
|
||||
- **Verification:**
|
||||
- `npm run lint` passed.
|
||||
- `node scripts/check-innerhtml.mjs --report` confirmed 0 assignments in `dashboard/index.html`.
|
||||
- Manual verification (simulated) of DOM structure.
|
||||
- **Artifacts:**
|
||||
- `src/context/CONTEXT_2026-02-14T23-00-00Z.md`
|
||||
- `src/todo/TODO_2026-02-14T23-00-00Z.md`
|
||||
- `src/decisions/DECISIONS_2026-02-14T23-00-00Z.md`
|
||||
- `src/test_logs/TEST_LOG_2026-02-14T23-00-00Z.md`
|
||||
- `dashboard/domUtils.js`
|
||||
Reference in new issue
Block a user