diff --git a/js/reveal.js b/js/reveal.js index 65ac29ff..867dd15b 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2880,7 +2880,7 @@ // Ensure the named link is a valid HTML ID attribute if( /^[a-zA-Z][\w:.-]*$/.test( name ) ) { // Find the slide with the specified ID - element = document.querySelector( '#' + name ); + element = document.getElementById( name ); } if( element ) {