Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use role="math" for non-MathML math tags
AXNodeObject::NativeRoleIgnoringAria() currently uses role "math" for elements whose tag name is "math", even when they are not in the MathML namespace e.g. elements constructed by JavaScript calls like document.createElementNS("https://example.com/namespace", "math"). The specification is not really explicit about namespaces [1] but it seems that the intention is to handle the normal case (math tag in the MathML namespace). This CL restricts default "math" role accordingly and adds a test for this and similar cases with the svg tag name. [1] w3c/html-aam#344 AX-Relnotes: <math> tags in non-MathML namespaces no longer have role "math" by default. Users should use an explicit attribute instead. Bug: 6606, 1038895, 1051115 Change-Id: Ifee04f4bbbd96b86686422bc0b0f99bf4cbaf54b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3168497 Reviewed-by: Nektarios Paisios <[email protected]> Commit-Queue: Frédéric Wang <[email protected]> Cr-Commit-Position: refs/heads/main@{#923328} NOKEYCHECK=True GitOrigin-RevId: e929ccd6402c234b3456692a2a05d76edf72bb3a
- Loading branch information