Index: chrome/browser/resources/chromeos/chromevox/common/dom_util.js |
diff --git a/chrome/browser/resources/chromeos/chromevox/common/dom_util.js b/chrome/browser/resources/chromeos/chromevox/common/dom_util.js |
index 827b062f30d98049aa1a419fc210cde12b52c8fd..c8d4fd69e689bf2c81eba748818bb7df26068555 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/common/dom_util.js |
+++ b/chrome/browser/resources/chromeos/chromevox/common/dom_util.js |
@@ -746,14 +746,14 @@ cvox.DomUtil.getPrefixText = function(node, opt_index) { |
opt_index == 0 && |
firstListitem.parentNode.tagName == 'OL' && |
node == leftmost && |
- document.defaultView.getComputedStyle(firstListitem.parentNode) |
+ document.defaultView.getComputedStyle(firstListitem.parentElement) |
.listStyleType != 'none') { |
var items = cvox.DomUtil.toArray(firstListitem.parentNode.children).filter( |
function(li) { return li.tagName == 'LI'; }); |
var position = items.indexOf(firstListitem) + 1; |
// TODO(dtseng): Support all list style types. |
if (document.defaultView.getComputedStyle( |
- firstListitem.parentNode).listStyleType.indexOf('latin') != -1) { |
+ firstListitem.parentElement).listStyleType.indexOf('latin') != -1) { |
position--; |
prefix = String.fromCharCode('A'.charCodeAt(0) + position % 26); |
} else { |