New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@qualweb/wcag-techniques

Package Overview
Dependencies
Maintainers
0
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qualweb/wcag-techniques

Implementation of the WCAG 2.1 techniques

  • 0.4.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
205
increased by28.93%
Maintainers
0
Weekly downloads
 
Created
Source

QualWeb WCAG techniques

Implementation of the WCAG 2.1 techniques.

How to use

This package is intended to be used with @qualweb/core.

Add both packages to your project:

npm i --save @qualweb/core @qualweb/wcag-techniques

In your own code, pass an instance of the WCAGTechniques class to QualWeb's evaluate method:

import { WCAGTechniques } from '@qualweb/wcag-techniques';
import { QualWeb } from '@qualweb/core';

async function main() {
  const qw = new QualWeb();

  await qw.start();

  const bpInstance = new WCAGTechniques({
    // Include/exclude specific rules here. Omitting any filters implies *all*
    // rules are included.
    levels: ['A', 'AA'],
    includes: ['QW-WCAG-T5'],
  });

  const urlToEvaluate = 'https://www.google.com';

  const report = await qw.evaluate({
    url: urlToEvaluate,
    modules: [bpInstance],
  });

  await qw.stop();

  console.debug(report[urlToEvaluate].metadata);
}

Implemented techniques

QualWeb Technique IDWCAG Technique IDWCAG Technique Name
QW-WCAG-T1H24Providing text alternatives for the area elements of image maps
QW-WCAG-T2H39Using caption elements to associate data table captions with data tables
QW-WCAG-T3H71Providing a description for groups of form controls using fieldset and legend elements
QW-WCAG-T4H73Using the summary attribute of the table element to give an overview of data tables
QW-WCAG-T5H36Using alt attributes on images used as submit buttons
QW-WCAG-T6SCR20Using both keyboard and other device-specific functions
QW-WCAG-T7H28Providing definitions for abbreviations by using the abbr element
QW-WCAG-T8F30Failure of Success Criterion 1.1.1 and 1.2.1 due to using text alternatives that are not alternatives
QW-WCAG-T9G141Organizing a page using headings
QW-WCAG-T10H2Combining adjacent image and text links for the same resource
QW-WCAG-T11H35Providing text alternatives on applet elements
QW-WCAG-T12F46Failure of Success Criterion 1.3.1 due to using th elements, caption elements, or non-empty summary attributes in layout tables
QW-WCAG-T13F47Failure of Success Criterion 2.2.2 due to using the blink element
QW-WCAG-T14H43Using id and headers attributes to associate data cells with header cells in data tables
QW-WCAG-T15H59Using the link element and navigation tools
QW-WCAG-T16H88Using HTML according to spec
QW-WCAG-T17G162Positioning labels to maximize predictability of relationships
QW-WCAG-T18H51Using table markup to present tabular information
QW-WCAG-T19H32Providing submit buttons
QW-WCAG-T20H33Supplementing link text with the title attribute
QW-WCAG-T21F89Failure of Success Criteria 2.4.4, 2.4.9 and 4.1.2 due to not providing an accessible name for an image which is the only content in a link
QW-WCAG-T22F52Failure of Success Criterion 3.2.1 and 3.2.5 due to opening a new window as soon as a new page is loaded
QW-WCAG-T23G1Adding a link at the top of each page that goes directly to the main content area
QW-WCAG-T24F55Failure of Success Criteria 2.1.1, 2.4.7, and 3.2.1 due to using script to remove focus when focus is received
QW-WCAG-T25H63Using the scope attribute to associate header cells and data cells in data tables
QW-WCAG-T26F59Failure of Success Criterion 4.1.2 due to using script to make div or span a user interface control in HTML without providing a role for the control
QW-WCAG-T27F88Failure of Success Criterion 1.4.8 due to using text that is justified (aligned to both the left and the right margins)
QW-WCAG-T28C12 C13 C14Using percent, em, names for font sizes
QW-WCAG-T29C19Specifying alignment either to the left or right in CSS
QW-WCAG-T30F4Failure of Success Criterion 2.2.2 due to using text-decoration:blink without a mechanism to stop it in less than five seconds
QW-WCAG-T31F24Failure of Success Criterion 1.4.3, 1.4.6 and 1.4.8 due to specifying foreground colors without specifying background colors or vice versa
QW-WCAG-T32H48Using ol, ul and dl for lists or groups of links

License

ISC

Keywords

FAQs

Package last updated on 15 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc