Skip to content

macOS: AXSubrole should not default to AXUnknown #767

Description

@mukilan

In Servo, we are attempting to map the blockquote role in HTML to Role::Blockquote in accesskit. However, the CORE-AAM test that validates the mapping to platform API fails because AccessKit exposes the node with AXRole = AXGroup and AXSubrole = AXUnknown attributes while the test expects AXSubrole to not be set.

The CORE-AAM spec says blockquote should map to AXSubrole: <nil> i.e AXSubrole should not be set like the test expects. So the issue is probably due to this accesskit logic for mapping the role to AXSubrole defaulting to AXUnknown.

_ => NSAccessibilityUnknownSubrole,

Other WAI-ARIA roles like caption, columnheader etc. which expect AXSubrole to be nil also have the same issue. I checked Chromium and they don't seem to set AXSubrole for these roles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions