Fix invalid math formatting report for ARIA role math in Chromium (#20734)
Fixes #20727
Summary of the issue:
In Chromium based browsers, elements with role="math" and an accessible name can expose their inner HTML through the IA2 math attribute.
NVDA treated this attribute as raw MathML, wrapped it in a <math> element, and passed the invalid markup to MathCAT. This caused NVDA to report invalid math formatting before reading the accessible name.
Description of user facing changes:
NVDA no longer reports invalid math formatting for ARIA role="math" elements in Chromium based browsers when the element provides an accessible name but no MathML.
Description of developer facing changes:
None.
Description of development approach:
The IA2 math attribute is now only treated as raw MathML when the object itself is a native MathML element.
For non-native role="math" elements, NVDA still checks for data-mathml and still supports the existing fallback where a wrapper contains a single native <math> child. If no MathML is found, _get_mathMl raises LookupError, allowing NVDA to fall back to the element's accessible name.