summaryrefslogtreecommitdiff
path: root/chromium/components/flags_ui/resources/flags.js
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/flags_ui/resources/flags.js')
-rw-r--r--chromium/components/flags_ui/resources/flags.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/chromium/components/flags_ui/resources/flags.js b/chromium/components/flags_ui/resources/flags.js
index 880dff21aba..7030f4a1ca4 100644
--- a/chromium/components/flags_ui/resources/flags.js
+++ b/chromium/components/flags_ui/resources/flags.js
@@ -184,9 +184,9 @@ function restartBrowser() {
* @param {string} text The text that should be announced.
*/
function announceStatus(text) {
- $('screen-reader-status-message').innerHTML = '';
+ $('screen-reader-status-message').textContent = '';
setTimeout(function() {
- $('screen-reader-status-message').innerHTML = text;
+ $('screen-reader-status-message').textContent = text;
}, 100);
}