Skip to content

Commit c93a30b

Browse files
authored
Merge pull request #3088 from yousefbilal/patch-1
Update part0b.md
2 parents 4b565e5 + e680de7 commit c93a30b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/0/en/part0b.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ xhttp.onreadystatechange = function() {
154154
li.appendChild(document.createTextNode(note.content))
155155
})
156156

157-
document.getElementsByClassName('notes')[0].appendChild(ul)
157+
document.getElementById('notes').appendChild(ul)
158158
}
159159
}
160160

@@ -324,7 +324,7 @@ data.forEach(function(note) {
324324
Finally, the tree branch of the <em>ul</em> variable is connected to its proper place in the HTML tree of the whole page:
325325
326326
```js
327-
document.getElementsByClassName('notes').appendChild(ul)
327+
document.getElementById('notes').appendChild(ul)
328328
```
329329
330330
### Manipulating the document object from console

0 commit comments

Comments
 (0)