mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
- Replace template `innerHTML` with `DOMParser` - Replace SVG `innerHTML` with `createElementNS` - Replace `innerHTML = ""` with `replaceChildren()` - Update `check-innerhtml` baseline Co-authored-by: PR0M3TH3AN <[email protected]>
652 B
652 B
Context: innerHTML Migration for ShareNostrModal.js
Date: 2026-02-20
Agent: bitvid-innerhtml-migration-agent (via Jules)
Target File: js/ui/components/ShareNostrModal.js
Reason: High count (3 assignments). Contains static SVG injection and template loading.
Environment:
- Node: v22.22.0
- npm: 11.7.0
Plan:
- Analyze
innerHTMLassignments. - Replace
wrapper.innerHTML = htmlwithDOMParseror similar safe parsing. - Replace
this.relayPills.innerHTML = ""withreplaceChildren(). - Replace
removeButton.innerHTML = SVGwithcreateElementNSor safe SVG construction. - Verify with lint and tests.