HTTPArchive / legacy.httparchive.org

<<THIS REPOSITORY IS DEPRECATED>> The HTTP Archive provides information about website performance such as # of HTTP requests, use of gzip, and amount of JavaScript. This information is recorded over time revealing trends in how the Internet is performing. Built using Open Source software, the code and data are available to everyone allowing researchers large and small to work from a common base.
https://legacy.httparchive.org
Other
328 stars 84 forks source link

New A11Y metrics #216

Closed foxdavidj closed 3 years ago

foxdavidj commented 3 years ago

Progress on https://github.com/HTTPArchive/almanac.httparchive.org/issues/2147

This PR adds five new metrics:

  1. form_control_a11y_tree: A slimmed down version of the browser accessibility tree for form controls (select, input, textarea, buttons)
  2. fieldset_radio_checkbox: Documents how many radios and checkboxes there are. Then checks how many of those inputs are correctly placed in a fieldset with a legend
  3. required_form_controls: Scans for all the required form controls on the page. Looks for required, aria-required, or an asterisk at the start or end of the visible label
  4. Track <audio> elements and their <track>s
  5. Addition of a total_with_track metric to the videos section in almanac.js

This code has been tested on custom built pages (example) and amazon.com (stress test for large amounts of elements) and passed the tests.

Amazon.com test

Custom page test