Skip to content

Wrong typing for include-exclude object #3334

@matyasf

Description

@matyasf

Product: axe-core, issue type: Typing bug

Expectation: include-exclude object accepts DOM node instances
Actual: it only accepts strings

See the docs for this: https://github.com/dequelabs/axe-core/blob/develop/doc/API.md#include-exclude-object a DOM node is a valid value.
Compare this to its typing: https://github.com/dequelabs/axe-core/blob/develop/axe.d.ts#L54


axe-core version: 4.3.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixBug fixesprA pr has been created for the issuetypescriptTypeScript issues

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions