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') { |