Skip to content

False Positive: Video element triggers label warning #164

@mrwweb

Description

@mrwweb

I have the following error:

Input is missing a label

The simplest way to do so is by creating a tag with a for attribute like so:

<label for="banner-video">
    Label text here...
</label>

Relevant code:

<video id="banner-video" class="full-bg" preload="auto" playsinline="" autoplay="" muted="" loop=""> <source src="https://example.org/wp-content/uploads/2019/08/home.mp4" type="video/mp4"> </video>

Unless I am ignorant of some odd aspect of the video or label element, I don't believe videos require labels and this is a false positive error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions