mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-18 16:01:35 -04:00
fix(curriculum): fix test 3 hint on cat photo app (#47587)
* fix: cat photo app step 5 hint * Revert "fix: cat photo app step 5 hint" This reverts commit b943858c4fdd6a6f8e4292e31e353f76e777cb20. * fix: cat photo app step 5 hint
This commit is contained in:
@@ -28,10 +28,8 @@ assert(code.match(/<\/main\>/));
|
||||
Your `main` element's opening tag should be below the `h1` element. You have them in the wrong order.
|
||||
|
||||
```js
|
||||
const collection = [...document.querySelectorAll('main,h1')].map(
|
||||
(node) => node.nodeName
|
||||
);
|
||||
assert(collection.indexOf('H1') < collection.indexOf('MAIN'));
|
||||
const main = document.querySelector('main');
|
||||
assert.equal(main?.previousElementSibling?.tagName, "H1");
|
||||
```
|
||||
|
||||
Your `main` element's opening tag should be above the `h2` element. You have them in the wrong order.
|
||||
|
||||
Reference in New Issue
Block a user