Document intentional post-parsing data-play assignments

This commit is contained in:
thePR0M3TH3AN committed 2025-09-24 16:05:45 -04:00
1 parent 2ae9f01cb5
commit 8a10a7cfc8
2 files changed
+6

No files matched your search

+3
View File
@@ -400,6 +400,9 @@ class SubscriptionsManager {
t.innerHTML = cardHtml.trim();
const cardEl = t.content.firstElementChild;
if (cardEl) {
// Leave the data-play-* attributes empty in the literal markup so we can
// assign the raw URL/magnet strings post-parsing without HTML entity
// escaping, mirroring the approach in app.js.
const interactiveEls = cardEl.querySelectorAll("[data-video-id]");
interactiveEls.forEach((el) => {
if (!el.dataset) return;