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 f19913fb28a39a92d5448ed93be4b16be93317c1..e14ce4e91e2831a48846073044108f62b1b271cf 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js |
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js |
@@ -536,11 +536,11 @@ Output.prototype = { |
this.append_(buff, text, options); |
} else if (token == 'indexInParent') { |
options.annotation.push(token); |
- this.append_(buff, node.indexInParent + 1); |
+ this.append_(buff, String(node.indexInParent + 1)); |
} else if (token == 'parentChildCount') { |
options.annotation.push(token); |
if (node.parent) |
- this.append_(buff, node.parent.children.length); |
+ this.append_(buff, String(node.parent.children.length)); |
} else if (token == 'state') { |
options.annotation.push(token); |
Object.getOwnPropertyNames(node.state).forEach(function(s) { |