From 84ea8fa8db9c9979ee46452a773ae7da028d0dc2 Mon Sep 17 00:00:00 2001 From: Anton Chesnokov Date: Tue, 22 Aug 2017 20:14:11 +0300 Subject: [PATCH] Issue #6368: trim text of DOM element before checking --- src/features/cellnav/js/cellnav.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/cellnav/js/cellnav.js b/src/features/cellnav/js/cellnav.js index 95f8c0e01c..d1c211e420 100644 --- a/src/features/cellnav/js/cellnav.js +++ b/src/features/cellnav/js/cellnav.js @@ -814,7 +814,7 @@ if (originEvt && originEvt.type === 'focus'){return;} function setNotifyText(text){ - if (text === ariaNotifier.text()){return;} + if (text === ariaNotifier.text().trim()){return;} ariaNotifier[0].style.clip = 'rect(0px,0px,0px,0px)'; /* * This is how google docs handles clearing the div. Seems to work better than setting the text of the div to ''