Skip to content

Reporting an incorrect usage of scope attribute on TH tag #244

Closed
@matiasmm

Description

@matiasmm

I'm testing a website using AXE chrome extension and it is reporting an incorrect usage of the scope attribute.
The html chunk that is producing the error is: <th style="" scope="col">Product</th>
What I understand of the error is that scope can only be used on TH tags, but that's the case, so it's not clear why it is being reported.

The output of the extension is here:

Ensures the scope attribute is used correctly on tables
(More Info)

    best-practice

Target:#partner-signup > div:nth-of-type(2) > .main-col > .order-confirmation > table > thead > tr > th:nth-of-type(1)
HTML:

<th style="" scope="col">Product</th>

Summary:
Fix all of the following:

    In HTML 5, scope attributes may only be used on table header elements (<th>)

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedWe welcome PRs or discussions for issues marked as help wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions