diff --git a/curriculum/challenges/english/25-front-end-development/lab-event-hub/66ebd4ae2812430bb883c787.md b/curriculum/challenges/english/25-front-end-development/lab-event-hub/66ebd4ae2812430bb883c787.md index b981f5b9311..7edee2ec810 100644 --- a/curriculum/challenges/english/25-front-end-development/lab-event-hub/66ebd4ae2812430bb883c787.md +++ b/curriculum/challenges/english/25-front-end-development/lab-event-hub/66ebd4ae2812430bb883c787.md @@ -159,10 +159,10 @@ const h2Element = document.querySelector('#upcoming-events h2'); assert.strictEqual(h2Element?.innerText, "Upcoming Events"); ``` -Inside the `#upcoming-events` section, you should have two `article` elements. +Inside the `#upcoming-events` section, you should have two `article` elements below the `h2` element. ```js -const articleElements = document.querySelectorAll('#upcoming-events article'); +const articleElements = document.querySelectorAll('#upcoming-events h2 ~ article'); assert.strictEqual(articleElements.length, 2); ``` @@ -187,10 +187,10 @@ const h2Element = document.querySelector('#past-events h2'); assert.strictEqual(h2Element?.innerText, "Past Events"); ``` -Inside the `#past-events` section, you should have two `article` elements. +Inside the `#past-events` section, you should have two `article` elements below the `h2` element. ```js -const articleElements = document.querySelectorAll('#past-events article'); +const articleElements = document.querySelectorAll('#past-events h2 ~ article'); assert.strictEqual(articleElements.length, 2); ```