mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
- Replaced `wrapper.innerHTML` with `DOMParser` for template loading. - Replaced `metadataList.innerHTML = ""` with `replaceChildren()`. - Updated `scripts/check-innerhtml.mjs` baseline (count reduced by 3). - Added artifacts: context, todo, decisions, log. - Verified with lint and unit tests. Co-authored-by: PR0M3TH3AN <[email protected]>
656 B
656 B
TODO - 2026-02-18
File: js/ui/components/DeleteModal.js
- Line 108:
wrapper.innerHTML = html;- Context: Loading
components/delete-video-modal.htmltemplate. - Strategy: Use
DOMParserto parse the HTML string and append children to wrapper.
- Context: Loading
- Line 263:
this.metadataList.innerHTML = "";- Context: Clearing the metadata list before re-rendering.
- Strategy: Replace with
this.metadataList.replaceChildren()orthis.metadataList.textContent = "".
- Line 368:
this.metadataList.innerHTML = "";- Context: Resetting the modal state.
- Strategy: Replace with
this.metadataList.replaceChildren().