Fix/update cat photo app bug of not checking type attribute (#47152)

* fix the issue not checking type attribute

* bug fix for not checking type attribute

* fix the bug of not checking type attribute

* Update 5ef9b03c81a63668521804de.md

update hints

* Update 5ef9b03c81a63668521804df.md

update hint

* Update 5f1a80975fc4bcae0edb3497.md

update hint

* Update 5f1a80975fc4bcae0edb3497.md

* Update 5ef9b03c81a63668521804df.md

* Update 5f1a80975fc4bcae0edb3497.md

* Update 5f1a80975fc4bcae0edb3497.md

* Update 5ef9b03c81a63668521804de.md

* Update curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f1a80975fc4bcae0edb3497.md

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>

* Update curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f1a80975fc4bcae0edb3497.md

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>

* Update curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f1a80975fc4bcae0edb3497.md

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>

* Update curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f1a80975fc4bcae0edb3497.md

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>

* Update curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804de.md

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>

* Update curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804de.md

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>

* added space to step 45

* removed space from step 48

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>
This commit is contained in:
kelvinyy 2022-08-05 18:19:39 +08:00 committed by GitHub
parent a3d6a413a2
commit 781eba5c68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 0 deletions

View File

@ -32,6 +32,13 @@ const radioButtons = [...document.querySelectorAll('input[type="radio"]')];
assert(radioButtons.every((btn) => btn.hasAttribute('name')));
```
Both radio buttons should have a `type` attribute. Check that there is a space after the opening tag's name and/or there are spaces before all attribute names.
```js
const radioButtons = [...document.querySelectorAll('input')];
assert(radioButtons.every((btn) => btn.hasAttribute('type')));
```
Both radio buttons should have a `name` attribute with the value `indoor-outdoor`. You have either omitted the value or have a typo. Remember that attribute values should be surrounded with quotation marks.
```js

View File

@ -28,6 +28,12 @@ Your radio button should have an `id` attribute. Check that there is a space aft
assert($('input')[0].hasAttribute('id'));
```
Your radio button should have a `type` attribute. Check that there is a space after the opening tag's name and/or there are spaces before all attribute names.
```js
assert($('input')[0].hasAttribute('type'));
```
Your radio button should have an `id` attribute with the value `indoor`. You have either omitted the value or have a typo. Remember that attribute values should be surrounded with quotation marks.
```js

View File

@ -32,6 +32,13 @@ const radioButtons = [...document.querySelectorAll('input[type="radio"]')];
assert(radioButtons.every((btn) => btn.hasAttribute('value')));
```
Both radio buttons should have a `type` attribute. Check that there is a space after the opening tag's name and/or there are spaces before all attribute names.
```js
const radioButtons = [...document.querySelectorAll('input')];
assert(radioButtons.every((btn) => btn.hasAttribute('type')));
```
The `Indoor` radio button's `value` attribute should be set to `indoor`. You have either omitted the value or have a typo. Remember that attribute values should be surrounded with quotation marks.
```js