Skip to content

aria-prohibited-attr should always report incomplete if there is text in the subtree #3346

@WilcoFiers

Description

@WilcoFiers

The following should have been reported as incomplete, but is failed instead:

<div role="code" aria-label="foo">Hello world</div>

It should only fail if the content is missing, like in the following:

<div role="code" aria-label="foo"></div>

This already works without the role. It goes bad because subtreeText isn't called correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixBug fixesprA pr has been created for the issue

    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