Skip to content
Snippets Groups Projects
Commit 55d29cb8 authored by Jarko Papalitsas's avatar Jarko Papalitsas
Browse files

Modify description of dom exercise

parent 022d57a6
Branches master
No related tags found
No related merge requests found
...@@ -429,11 +429,9 @@ let Content = { ...@@ -429,11 +429,9 @@ let Content = {
find_the_right_element: { find_the_right_element: {
instructions: ` instructions: `
We have some really amazing blogs, but not as amazing web developers... They are trying to write a function that takes a blog <code>id</code> as argument (e.g. 'blog-1' and 'blog-2'). And then, from the element with an <code>id</code> that matches the argument, the function selects <strong>all</strong> the elements that has the attribute <code>class="content"</code>. Finally, the function returns the elements obtained from the previous step.</br></br> We have given a task of writing a function that given a <code>blogId</code> (e.g. 'blog-1' or 'blog-2') as an argument, returns all the child elements with class name <code>content</code> for that specific id. For example if the function is given a blog id of <code>blog-1</code>, it should find the element with id <code>blog-1</code> from the document. It should then find all the children of 'blog-1' with class name of <code>content</code> and <strong>return</strong> this list of elements.
</br></br>
They have managed to write part of the function but they are still missing something, can you help us to get it working?. Belowe here is the HTML code of the page with our amazing blogs, Below this description is the HTML source code of the document we are targetting. You may want to copy that HTML document to yourself and test targetting elements with your developer console first. Click "Run & Grade" when you think that your function is ready.
if you want to do some tests you can also copy-paste it to your own file and test with it in the developer console. Click "Run & Grade" When you think
that your function is ready.
<pre><code> <pre><code>
&lt;!DOCTYPE html&gt; &lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt; &lt;html lang="en"&gt;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment