fix: expand the editable regions (#45526)

This commit is contained in:
Naomi Carrigan
2022-03-30 06:35:13 -07:00
committed by GitHub
parent 004c5b6fb6
commit fc22061a9e
3 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ After the unordered list, add a new image with an `src` attribute value set to `
# --hints--
There should be an `img` element right above the second `section` element's closing tag.
There should be an `img` element right after the closing `</ul>` tag.
```js
assert($('section')[1].lastElementChild.nodeName === 'IMG');

View File

@ -93,11 +93,11 @@ assert(
<li>laser pointers</li>
<li>lasagna</li>
</ul>
--fcc-editable-region--
<figure>
--fcc-editable-region--
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg" alt="A slice of lasagna on a plate.">
--fcc-editable-region--
</figure>
--fcc-editable-region--
</section>
</main>
</body>

View File

@ -88,12 +88,12 @@ assert(extraSpacesRemoved.match(/Is your cat an indoor or outdoor cat\??$/i));
<section>
<h2>Cat Form</h2>
<form action="https://freecatphotoapp.com/submit-cat-photo">
<fieldset>
--fcc-editable-region--
<fieldset>
<label><input id="indoor" type="radio" name="indoor-outdoor" value="indoor"> Indoor</label>
<label><input id="outdoor" type="radio" name="indoor-outdoor" value="outdoor"> Outdoor</label>
--fcc-editable-region--
</fieldset>
--fcc-editable-region--
<input type="text" name="catphotourl" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>