GoogleChrome / GoogleChrome/lighthouse

Media audit: check that every media source element has a valid type attribute

Open
#2,584 1 comment 0 reactions 0 assignees View on GitHub
feature new_audit P3
Dominant language
JavaScript
Stars
30.8k
Forks
9.8k
Avg merge
1d 20h
Merged PRs (30d)
19

Description

Every audio and video source element should have a valid type attribute.

The type attribute allows the browser to select a media source without downloading media to test if the format is supported. To see this in action, compare network activity for [simpl.info/video/noautoplay](https://simpl.info/video/noautoplay) with [simpl.info/video/notype](https://simpl.info/video/notype).

To test, check that every source element for every video or audio element on a page has a valid type attribute.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.