Skip to content

Commit c392dde

Browse files
committed
change append() to appendChild
1 parent 38a754c commit c392dde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

22 - Follow Along Link Highlighter/index-FINISHED.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
const triggers = document.querySelectorAll('a');
3030
const highlight = document.createElement('span');
3131
highlight.classList.add('highlight');
32-
document.body.append(highlight);
32+
document.body.appendChild(highlight);
3333

3434
function highlightLink() {
3535
const linkCoords = this.getBoundingClientRect();

0 commit comments

Comments
 (0)