Skip to content

w3c Error: Attribute role not allowed on element label at this point. #259

Description

@woolyseal

The validation from w3c is throwing an Error with the following part in the common.py:

_opener_markup_template = (
u'<input id="navitem-{uid}" type="checkbox" class="opener" />'
u'<label for="navitem-{uid}" role="button" aria-label="{title}"></label>' # noqa: E 501
)

The Error says:
Error: Attribute role not allowed on element label at this point.

Is there any use for this "role" in the label? If not, I would fix this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    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