From cbd00e8b2cdebfe8f1876f4426836a1e61545f2c Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Tue, 15 Sep 2026 18:20:02 +0100 Subject: selectors put " around attribute value --- http/public/scripts/feed-condense-content.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'http') diff --git a/http/public/scripts/feed-condense-content.js b/http/public/scripts/feed-condense-content.js index 7fd01b3..014a07b 100644 --- a/http/public/scripts/feed-condense-content.js +++ b/http/public/scripts/feed-condense-content.js @@ -1,8 +1,8 @@ const expandedClass = "e-content--expanded"; export function toggleContentExpanded(id) { - const content = document.querySelector(`[data-content-id=${id}]`); - const button = document.querySelector(`[data-content-id=${id}] + button`); + const content = document.querySelector(`[data-content-id="${id}"]`); + const button = document.querySelector(`[data-content-id="${id}"] + button`); if (!content) { throw new Error(`No content found with ID: ${id}`); -- cgit v1.2.3