diff options
author | Maarten Schroeven <maarten.schroeven@kbc.be> | 2016-08-18 10:56:59 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2016-10-05 11:54:46 +0200 |
commit | 7e99626b142b334d2563660d260ffa96ccf34fcf (patch) | |
tree | 9ab8b0cbd4c6cdac3fc63af859adb4a21bf106ed | |
parent | ab33b31f0a2892852903785893a4fa68862aa73d (diff) | |
download | fosdem-2018-presentation-7e99626b142b334d2563660d260ffa96ccf34fcf.tar fosdem-2018-presentation-7e99626b142b334d2563660d260ffa96ccf34fcf.tar.gz |
only use nodeType 1 and 3 (only relevant types)
-rw-r--r-- | js/reveal.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js index b0bc935..e78cb8f 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -558,7 +558,7 @@ var text = ""; if(node.nodeType === 3) { //text node text += node.textContent; - }else { + }else if (node.nodeType === 1) { //element node var isAriaHidden = node.getAttribute('aria-hidden'); var isDisplayHidden = window.getComputedStyle(node)['display'] === 'none'; if (isAriaHidden !== 'true' && !isDisplayHidden) { |