use getElementByID when looking up linked slides #1086

edit
Hakim El Hattab 2015-01-15 11:25:20 +01:00
parent 9a89e39367
commit 817bb3bf43
1 changed files with 1 additions and 1 deletions

View File

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