diff --git a/source/NVDAObjects/IAccessible/ia2Web.py b/source/NVDAObjects/IAccessible/ia2Web.py index 50a7103a819..493084358af 100644 --- a/source/NVDAObjects/IAccessible/ia2Web.py +++ b/source/NVDAObjects/IAccessible/ia2Web.py @@ -12,6 +12,7 @@ ) from ctypes import c_short from comtypes import COMError, BSTR +from comtypes.hresult import E_NOTIMPL import oleacc from annotation import ( @@ -334,7 +335,13 @@ def _get_mathMl(self): # Try the data-mathml attribute. attrNames = (BSTR * 1)("data-mathml") namespaceIds = (c_short * 1)(0) - attr = node.attributesForNames(1, attrNames, namespaceIds) + try: + attr = node.attributesForNames(1, attrNames, namespaceIds) + except COMError as e: + if e.hresult != E_NOTIMPL: + log.debugWarning(f"MathML getting attr error: {e}") + raise + attr = None if attr: import mathPres diff --git a/user_docs/en/changes.md b/user_docs/en/changes.md index b5239df173d..2ddfdd21de1 100644 --- a/user_docs/en/changes.md +++ b/user_docs/en/changes.md @@ -2,8 +2,11 @@ ## 2024.4.2 -### Bug Fixes +This is a patch release to fix bugs with braille devices and reading math in Chromium. + +### Bug fixes +* Fixed bug with with reading math in Chromium Browsers (Chrome, Edge). (#17421, @NSoiffer) * Humanware Brailliant BI 40X devices running firmware version 2.4 now work as expected. (#17518, @bramd) ## 2024.4.1