Skip to content

Commit cb87678

Browse files
committed
innertext to textContent
1 parent b7a0d25 commit cb87678

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

js/speech-shortcode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ document.addEventListener( "DOMContentLoaded", function( event ) {
55
speeches[ i ].addEventListener( 'click', function() {
66
var voice = this.getAttribute( 'data-voice' );
77

8-
var synthes = new SpeechSynthesisUtterance( this.innerText );
8+
var synthes = new SpeechSynthesisUtterance( this.textContent );
99
synthes.lang = this.getAttribute( 'data-lang' );
1010
var voices = speechSynthesis.getVoices();
1111
voices.forEach( function( v, i ) {

0 commit comments

Comments
 (0)