mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-16 21:06:35 +08:00
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:
parent
a3d6a413a2
commit
781eba5c68
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user