Bug 920547 - create generic accessibles for mathml elements, r=tbsaunde

This commit is contained in:
Alexander Surkov 2013-09-26 10:37:40 -04:00
parent c3664e6ae6
commit 93a7d8cfd3

View File

@ -1022,8 +1022,11 @@ nsAccessibilityService::GetOrCreateAccessible(nsINode* aNode,
} else if (content->Tag() == nsGkAtoms::svg) {
newAcc = new EnumRoleAccessible(content, document, roles::DIAGRAM);
}
} else if (content->IsMathML(nsGkAtoms::math)) {
} else if (content->IsMathML()){
if (content->Tag() == nsGkAtoms::math)
newAcc = new EnumRoleAccessible(content, document, roles::EQUATION);
else
newAcc = new HyperTextAccessible(content, document);
}
}