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); }); ```