소스 검색

Change innerHTML to textContent to avoid video replays inside status Div, for not text content is enough

Nawaz 11 년 전
부모
커밋
e70d07b45d
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 2 - 2
js/reveal.js

@@ -1771,7 +1771,7 @@ var Reveal = (function(){
 			slides[index].classList.add( 'present' );
 			slides[index].removeAttribute( '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
 			// onto the current state of the deck
@@ -2424,7 +2424,7 @@ var Reveal = (function(){
 						element.classList.add( 'visible' );
 						element.classList.remove( 'current-fragment' );
 						//Announce the fragments one by one to the Screen Reader
-						dom.statusDiv.innerHTML = element.innerHTML;
+						dom.statusDiv.innerHTML = element.textContent;
 
 						if( i === index ) {
 							element.classList.add( 'current-fragment' );

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
js/reveal.min.js


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.