Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Michael Elmallakh
Michael Elmallakh
2,531 Points

What the mean of an error "Task one is no longer pass"

let navigationLinks = document.querySelectorAll('nav > ul > li > a');
let galleryLinks = document.querySelectorAll('#gallery > li > a');
let footerImages = document.querySlectorAll('footer > img');

in this task I should select all images in the footer element and assign them to footerImages and when I submit the answer this error message appears to me.

Simon Coates
Simon Coates
28,694 Points

This post doesn't seem to be linked to a challenge. If you provide a link, you'll get more meaningful feedback. Also you have a spelling mistake "Slector".

1 Answer

Steven Parker
Steven Parker
231,007 Points

:point_right: The error message may be misleading.

Clearly, your task 1 answer is still correct, but I see two issues with your task 3 answer:

  • As Simon noticed, you're missing a letter "e" in "querySlectorAll"
  • The images are not direct children of the footer element, so you can't use the ">" combinator But you could use an ordinary descendant selector, which involves just placing a space between the two terms.

The syntax error introduced by the misspelling may be making the previous answers also appear to be wrong to the checker.

Michael Elmallakh
Michael Elmallakh
2,531 Points

Steven it's work now. Thanks alot :D