Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False Positive: Video element triggers label warning #164

Open
mrwweb opened this issue Apr 9, 2020 · 0 comments
Open

False Positive: Video element triggers label warning #164

mrwweb opened this issue Apr 9, 2020 · 0 comments

Comments

@mrwweb
Copy link

mrwweb commented Apr 9, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant