[security] replace innerHTML in RevertModal.js

Migrated `js/ui/components/RevertModal.js` to safe DOM APIs (`createElement`, `textContent`, `DOMParser`).
Extracted rendering logic to `js/ui/components/revertModalRenderers.js`.
Updated baseline in `scripts/check-innerhtml.mjs` (0 remaining usages).
Updated tests to mock DOMParser.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-14 18:58:02 +00:00
1 parent 83587ea3ea
commit f676fb2ff5
9 files changed
+1001 -621

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
# Context
* **File:** `js/ui/components/RevertModal.js`
* **Reason:** Highest innerHTML usage count (10) in the daily report.
* **Date:** 2026-02-14
* **Plan:** Migrate `innerHTML` assignments to `document.createElement`, `textContent`, and safe DOM manipulation.