Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2766)

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js

Issue 2694903010: AX checked state changes (Closed)
Patch Set: Windows tests Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
index 45720681c6992464733303b54d62854abd3e0f93..5f1d6f305e6616edbf5a27a1b144d95c57e9b35e 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
@@ -1155,20 +1155,16 @@ Output.prototype = {
}
} else if (token == 'checked') {
var msg;
- var ariaChecked = node.htmlAttributes['aria-checked'];
- switch (ariaChecked) {
+ switch (node.checked) {
case 'mixed':
msg = 'aria_checked_mixed';
break;
case 'true':
msg = 'aria_checked_true';
break;
- case 'false':
+ default:
msg = 'aria_checked_false';
break;
- default:
- msg = node.state[StateType.CHECKED] ?
- 'aria_checked_true' : 'aria_checked_false';
}
this.format_(node, '@' + msg, buff);
} else if (token == 'state') {

Powered by Google App Engine
This is Rietveld 408576698