Refactor js/docsView.js to replace innerHTML with safe DOM APIs

- Replaced 7/8 `innerHTML` instances with `document.createElementNS`, `replaceChildren`, and `setAttribute`
- Updated `scripts/check-innerhtml.mjs` baseline (8 -> 1)
- Retained 1 `innerHTML` instance for `marked.parse` (trusted content)
- Verified functionality with unit tests (`npm run test:unit`) and frontend verification (`Playwright`)
- Created completion log `docs/agents/task-logs/daily/2026-02-16_21-43-55_innerhtml-migration-agent_completed.md`
- Moved temporary artifacts to `artifacts/innerhtml-migration/2026-02-16/`

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-16 21:47:01 +00:00
1 parent 9e6884f6dc
commit 8f7d953e22
14 files changed
+63 -178

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ const SOURCE_DIR = join(ROOT, "js");
const BASELINE = {
"js/app.js": 1,
"js/app/feedCoordinator.js": 1,
"js/docsView.js": 8,
"js/docsView.js": 1,
"js/exploreView.js": 1,
"js/forYouView.js": 1,
"js/historyView.js": 4,