Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6091976

Browse files
authored
Merge pull request wesbos#94 from rbastiansch/master
change append() to appendChild()
2 parents cfe11ce + c392dde commit 6091976

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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)