Skip to content

Commit f41fe77

Browse files
Use textContent instead of innerText for quote and author elements
1 parent 828dc03 commit f41fe77

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sprint-3/quote-generator/quotes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,11 +497,11 @@ function chooseQuote() {
497497

498498
const quote = document.getElementById("quote");
499499
if(quote!==null){
500-
quote.innerText = randomQuote.quote;
500+
quote.textContent = randomQuote.quote;
501501
}
502502
const author = document.getElementById("author");
503503
if(author!==null){
504-
author.innerText = randomQuote.author;
504+
author.textContent = randomQuote.author;
505505
}
506506
}
507507

0 commit comments

Comments
 (0)