On Sat, 14 Mar 2026 21:00:53 GMT, Jeremy Wood <[email protected]> wrote:

> On Mac OS: a "heading" has a special semantic meaning for assistive 
> technologies. It is a more accurate/useful role than "header" (which is a 
> Java construct and doesn't directly map to a Mac OS feature)

In hindsight I wish I'd written the hyperlink PR ( 
https://github.com/openjdk/jdk/pull/29686 ) to resemble this PR:

- (NSAccessibilityRole)accessibilityRole
{
    if (fNSRole == nil) {
        ...
        if ( ... ) {
            ...
        } else if ( [javaRole isEqualToString:@"hyperlink"]) {
            fNSRole = NSAccessibilityLinkRole;
        }


I confirmed the hyperlink test still passes with this simpler implementation. I 
assume reviewers here want me to not revise an already-closed ticket, though.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/30251#issuecomment-4061391938

Reply via email to