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 b9dd523220e50a13d7b59136c8dee310add8ee69..962f37d04f49b087b8d8c635aa8e04905c00f278 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/common/dom_util.js |
+++ b/chrome/browser/resources/chromeos/chromevox/common/dom_util.js |
@@ -2447,9 +2447,14 @@ cvox.DomUtil.isMathImg = function(node) { |
if (node.tagName != 'IMG') { |
return false; |
} |
- var className = node.className.toLowerCase(); |
- return cvox.DomUtil.ALT_MATH_CLASSES.tex.indexOf(className) != -1 || |
- cvox.DomUtil.ALT_MATH_CLASSES.asciimath.indexOf(className) != -1; |
+ for (var i = 0, className; className = node.classList.item(i); i++) { |
+ className = className.toLowerCase(); |
+ if (cvox.DomUtil.ALT_MATH_CLASSES.tex.indexOf(className) != -1 || |
+ cvox.DomUtil.ALT_MATH_CLASSES.asciimath.indexOf(className) != -1) { |
+ return true; |
+ } |
+ } |
+ return false; |
}; |