From 80f8b6ffcd07210e2be2d2d7dfe812985ffff43f Mon Sep 17 00:00:00 2001 From: Ilenia <26656284+ilenia-magoni@users.noreply.github.com> Date: Fri, 19 Sep 2025 14:47:09 +0200 Subject: [PATCH] fix(curriculum): allow spaces in book catalog table lab inside elements (#62258) --- .../lab-book-catalog-table/66ec4c8e9878d8441956516f.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/curriculum/challenges/english/blocks/lab-book-catalog-table/66ec4c8e9878d8441956516f.md b/curriculum/challenges/english/blocks/lab-book-catalog-table/66ec4c8e9878d8441956516f.md index ac12bb831b8..0f0b31cf1c2 100644 --- a/curriculum/challenges/english/blocks/lab-book-catalog-table/66ec4c8e9878d8441956516f.md +++ b/curriculum/challenges/english/blocks/lab-book-catalog-table/66ec4c8e9878d8441956516f.md @@ -50,10 +50,10 @@ Your four `th` elements should have the text `Title`, `Author`, `Genre`, and `Pu ```js const ths = document.querySelectorAll('thead tr th'); -assert.equal(ths[0]?.textContent, 'Title'); -assert.equal(ths[1]?.textContent, 'Author'); -assert.equal(ths[2]?.textContent, 'Genre'); -assert.equal(ths[3]?.textContent, 'Publication Year'); +assert.equal(ths[0]?.textContent.trim(), 'Title'); +assert.equal(ths[1]?.textContent.trim(), 'Author'); +assert.equal(ths[2]?.textContent.trim(), 'Genre'); +assert.equal(ths[3]?.textContent.trim(), 'Publication Year'); ``` You should have one `tbody` element within your `table` element. @@ -87,7 +87,7 @@ const tds = document.querySelectorAll('tbody tr td'); assert.isAtLeast(tds.length, 1); tds.forEach(td => { - assert.isAtLeast(td.textContent.length, 1); + assert.isAtLeast(td.textContent.trim().length, 1); }); ```