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]>
857 B
857 B
innerHTML Migration Task: ShareNostrModal.js
Date: 2026-02-20 Agent: innerhtml-migration-agent Status: Completed
Migrated File
js/ui/components/ShareNostrModal.js(3 innerHTML assignments migrated)
Changes
- Template Loading: Replaced
wrapper.innerHTML = htmlwithDOMParserlogic. - Clearing Content: Replaced
this.relayPills.innerHTML = ""withreplaceChildren(). - SVG Icon: Replaced
removeButton.innerHTML = SVGwithcreateElementNS.
Verification
npm run lintpassed.npm run test:unitpassed.node scripts/check-innerhtml.mjs --reportconfirmed count reduction (3 -> 0 for this file).scripts/check-innerhtml.mjsbaseline updated.
Artifacts
context/CONTEXT_2026-02-20_innerhtml.mdtodo/TODO_2026-02-20_innerhtml.mddecisions/DECISIONS_2026-02-20_innerhtml.md