mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-16 21:06:35 +08:00
Fix(curriculum) Less strict whitespace in HTML Form 15 (#46792)
HTML form - less strict whitespace tests
This commit is contained in:
parent
c7c9a5492d
commit
20fb7e4f9e
@ -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: <input>');
|
||||
assert.equal(document.querySelectorAll('label')?.[0]?.innerHTML.trim(), 'Enter Your First Name: <input>');
|
||||
```
|
||||
|
||||
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: <input>');
|
||||
assert.equal(document.querySelectorAll('label')?.[1]?.innerHTML.trim(), 'Enter Your Last Name: <input>');
|
||||
```
|
||||
|
||||
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: <input>');
|
||||
assert.equal(document.querySelectorAll('label')?.[2]?.innerHTML.trim(), 'Enter Your Email: <input>');
|
||||
```
|
||||
|
||||
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: <input>');
|
||||
assert.equal(document.querySelectorAll('label')?.[3]?.innerHTML.trim(), 'Create a New Password: <input>');
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Loading…
Reference in New Issue
Block a user