mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-08 05:43:04 +00:00
17 lines
541 B
Markdown
17 lines
541 B
Markdown
# Context
|
|
|
|
- **File:** `js/subscriptions.js`
|
|
- **Reason:** Migrating `innerHTML` assignments to safe DOM APIs as part of security hardening.
|
|
- **Date:** 2026-02-13
|
|
- **Commit:** (will be added)
|
|
- **Node:** v22.22.0
|
|
- **npm:** 11.7.0
|
|
|
|
## Plan
|
|
|
|
1. Replace `innerHTML` assignments with `textContent` where possible.
|
|
2. Implement `renderStatusMessage` helper for simple messages.
|
|
3. Implement `renderLoadingIndicator` helper to replace `getSidebarLoadingMarkup`.
|
|
4. Verify changes with lint and tests.
|
|
5. Update `check-innerhtml` baseline.
|