Change innerHTML to textContent to avoid video replays inside status Div, for not text content is enough
This commit is contained in:
parent
20a725222b
commit
e70d07b45d
|
@ -1771,7 +1771,7 @@ var Reveal = (function(){
|
||||||
slides[index].classList.add( 'present' );
|
slides[index].classList.add( 'present' );
|
||||||
slides[index].removeAttribute( 'hidden' );
|
slides[index].removeAttribute( 'hidden' );
|
||||||
slides[index].removeAttribute( 'aria-hidden' );
|
slides[index].removeAttribute( 'aria-hidden' );
|
||||||
dom.statusDiv.innerHTML = slides[index].innerHTML;
|
dom.statusDiv.innerHTML = slides[index].textContent;
|
||||||
|
|
||||||
// If this slide has a state associated with it, add it
|
// If this slide has a state associated with it, add it
|
||||||
// onto the current state of the deck
|
// onto the current state of the deck
|
||||||
|
@ -2424,7 +2424,7 @@ var Reveal = (function(){
|
||||||
element.classList.add( 'visible' );
|
element.classList.add( 'visible' );
|
||||||
element.classList.remove( 'current-fragment' );
|
element.classList.remove( 'current-fragment' );
|
||||||
//Announce the fragments one by one to the Screen Reader
|
//Announce the fragments one by one to the Screen Reader
|
||||||
dom.statusDiv.innerHTML = element.innerHTML;
|
dom.statusDiv.innerHTML = element.textContent;
|
||||||
|
|
||||||
if( i === index ) {
|
if( i === index ) {
|
||||||
element.classList.add( 'current-fragment' );
|
element.classList.add( 'current-fragment' );
|
||||||
|
|
4
js/reveal.min.js
vendored
4
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user