From 817bb3bf43879009ae445e52d4b6ef88053c5583 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Thu, 15 Jan 2015 11:25:20 +0100 Subject: [PATCH] use getElementByID when looking up linked slides #1086 --- js/reveal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/reveal.js b/js/reveal.js index 65ac29f..867dd15 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 ) {