mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
docs: close stale innerHTML TODO — ShareNostrModal has no innerHTML left
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LHH3wPBsoruwCaJo8Rpf6a
This commit is contained in:
1 parent
975b996f4c
commit
5cce3b726a
1 file changed
+9
-3
@@ -1,8 +1,14 @@
|
|||||||
# TODO: innerHTML Migration for ShareNostrModal.js
|
# TODO: innerHTML Migration for ShareNostrModal.js
|
||||||
|
|
||||||
- [ ] L107: `wrapper.innerHTML = html;` (Template loading)
|
- [x] L107: `wrapper.innerHTML = html;` (Template loading)
|
||||||
- Strategy: Use `new DOMParser().parseFromString(html, 'text/html')` and append children to `wrapper`.
|
- Strategy: Use `new DOMParser().parseFromString(html, 'text/html')` and append children to `wrapper`.
|
||||||
- [ ] L274: `this.relayPills.innerHTML = "";` (Clearing content)
|
- [x] L274: `this.relayPills.innerHTML = "";` (Clearing content)
|
||||||
- Strategy: `this.relayPills.replaceChildren();` or `textContent = ""` (replaceChildren is preferred for performance).
|
- Strategy: `this.relayPills.replaceChildren();` or `textContent = ""` (replaceChildren is preferred for performance).
|
||||||
- [ ] L300: `removeButton.innerHTML = '<svg ...>...</svg>';` (SVG Icon)
|
- [x] L300: `removeButton.innerHTML = '<svg ...>...</svg>';` (SVG Icon)
|
||||||
- Strategy: Create SVG elements using `document.createElementNS("http://www.w3.org/2000/svg", "svg")` and children.
|
- Strategy: Create SVG elements using `document.createElementNS("http://www.w3.org/2000/svg", "svg")` and children.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**CLOSED 2026-07-30.** All three migrations already landed in later refactors —
|
||||||
|
`grep innerHTML js/ui/components/ShareNostrModal.js` returns nothing and the
|
||||||
|
innerHTML lint baseline holds. Kept for the record.
|
||||||
Reference in new issue
Block a user