From 20fb7e4f9e8d94ce482437a8763a925a2f15ac7b Mon Sep 17 00:00:00 2001 From: Jeremy L Thompson Date: Thu, 7 Jul 2022 11:16:17 -0600 Subject: [PATCH] Fix(curriculum) Less strict whitespace in HTML Form 15 (#46792) HTML form - less strict whitespace tests --- .../60f805f813eaf2049bc2ceea.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f805f813eaf2049bc2ceea.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f805f813eaf2049bc2ceea.md index 69471bc4a01..0788d34ed4a 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f805f813eaf2049bc2ceea.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f805f813eaf2049bc2ceea.md @@ -26,25 +26,25 @@ assert.equal(document.querySelectorAll('label input')?.length, 4); You should add the first `input` after the `label` text `Enter Your First Name:`, and include a space after the colon. ```js -assert.equal(document.querySelectorAll('label')?.[0]?.innerHTML, 'Enter Your First Name: '); +assert.equal(document.querySelectorAll('label')?.[0]?.innerHTML.trim(), 'Enter Your First Name: '); ``` You should add the second `input` after the `label` text `Enter Your Last Name:`, and include a space after the colon. ```js -assert.equal(document.querySelectorAll('label')?.[1]?.innerHTML, 'Enter Your Last Name: '); +assert.equal(document.querySelectorAll('label')?.[1]?.innerHTML.trim(), 'Enter Your Last Name: '); ``` You should add the third `input` after the `label` text `Enter Your Email:`, and include a space after the colon. ```js -assert.equal(document.querySelectorAll('label')?.[2]?.innerHTML, 'Enter Your Email: '); +assert.equal(document.querySelectorAll('label')?.[2]?.innerHTML.trim(), 'Enter Your Email: '); ``` You should add the fourth `input` after the `label` text `Create a New Password:`, and include a space after the colon. ```js -assert.equal(document.querySelectorAll('label')?.[3]?.innerHTML, 'Create a New Password: '); +assert.equal(document.querySelectorAll('label')?.[3]?.innerHTML.trim(), 'Create a New Password: '); ``` # --seed--