mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-11 17:14:57 +02:00
use getElementByID when looking up linked slides #1086
This commit is contained in:
@@ -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 ) {
|
||||||
|
Reference in New Issue
Block a user