Skip to content

Add note to invalid IdRef value error that it may be due to a Shadow DOM boundary #3419

@joppekroon

Description

@joppekroon

Product: axe-core

Expectation: Indicate that the referenced id is located beyond a Shadow DOM boundary. Even a message that states that this may be potentially the reason of the error would be very helpful.

Actual: Indicates that the value of the IdRef attribute is invalid

    "ARIA attributes must conform to valid values (aria-valid-attr-value)"

    Fix all of the following:
      Invalid ARIA attribute value: aria-controls="id-in-shadow"

Motivation: It is currently quite a confusing error message if you're not acutely aware that referencing an id that is located on the other side of a Shadow DOM boundary is problematic.


axe-core version: 4.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    prA pr has been created for the issuerule metadataIssues in the rule metadata code (lib/rules)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions