From 42fbf2e6ab97f256f645cae773e9fb2a4a65a4d2 Mon Sep 17 00:00:00 2001 From: Raquel <101219940+rakicodes@users.noreply.github.com> Date: Sun, 25 Sep 2022 22:59:45 -0600 Subject: [PATCH] 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 --- .../5dc2385ff86c76b9248c6eb7.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md index 78b9d0247b3..846f13c15fa 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md @@ -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.