Skip to content

Case might fire multiple resolve events #18

@mlewand

Description

@mlewand

Currently it's possible for Case instance to fire multiple resolve events. It occurs e.g. in headersAttrRefersToATableCell assessment.

You can run accessibility-tests/headersAttrRefersToATableCell.html test to experience this issue. With current master-2.2.x it will produce 16 assertions, out of 8 tables (tested elements).

Reason

The reason for this issue is $.each loop in headersAttrRefersToATableCell.js.

To understand it we need to remember that setting a case status will dispatch resolve event. In code mentioned above $.each function changes _case status for every matched header / cell. So as a result we have multiple resolve events.

We should prevent this kind of situation, or even throw an error if someone is doing so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions