
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@qualweb/act-rules
Advanced tools
Implementation of the ACT rules.
$ npm i @qualweb/act-rules --save
'use strict';
const { ACTRules } = require('@qualweb/act-rules');
(async () => {
const dom = await getDom('https://act-rules.github.io/pages/about/');
const actRules = new ACTRules();
const report = await actRules.execute(sourceHtml, page, stylesheets);
// print rules executed
console.log(Object.keys(report));
// ['QW-ACT-R1', 'QW-ACT-R2', 'QW-ACT-R3', ...]
// print rule outcome
console.log(report['QW-ACT-R1'].metadata.outcome);
// 'passed' | 'failed' | 'inapplicable'
// print rule results
console.log(report['QW-ACT-R1'].results[0]);
// {
// verdict: 'passed'
// description: 'HTML page has title element'
// resultCode: 'RC1'
// htmlCode: '<title>Some title</title>'
// pointer: 'html > head > title'
// }
})();
If you want you can configure the module to run only specific rules, or rules based on their principles and conform levels.
'use strict';
const { getDom } = require('@qualweb/get-dom-puppeteer');
const { ACTRules } = require('@qualweb/act-rules');
(async () => {
const options = {
rules: ['QW-ACT-R1', 'QW-ACT-R2', 'bf051a'], // will execute these rules regarding the other options given
principles: ['Understandable'], // will only execute rules that belong to the 'Understandable' principle
levels: ['A', 'AA'] // will only execute rules that belong to the 'A' and 'AA' conform levels
};
const actRules = new ACTRules(options);
// OR
const actRules = new ACTRules();
actRules.configure(options);
// In this case, with these options, all rules that belong to the 'Understandable' principle and the 'A' and 'AA' conform levels and rules 'QW-ACT-R1' and 'QW-ACT-R2' and 'bf051a' will be executed
const report = await actRules.execute(sourceHtml, page, stylesheets);
})();
QualWeb Rule ID | ACT Rule ID | ACT Rule Name |
---|---|---|
QW-ACT-R1 | 2779a5 | HTML Page has a title |
QW-ACT-R2 | b5c3f8 | HTML has lang attribute |
QW-ACT-R3 | 5b7ae0 | HTML lang and xml:lang match |
QW-ACT-R4 | bc659a | Meta-refresh no delay |
QW-ACT-R5 | bf051a | Validity of HTML Lang attribute |
QW-ACT-R6 | 59796f | Image button has accessible name |
QW-ACT-R7 | b33eff | Orientation of the page is not restricted using CSS transform property |
QW-ACT-R8 | 9eb3f6 | Image filename is accessible name for image |
QW-ACT-R11 | 97a4e1 | Button has accessible name |
QW-ACT-R12 | c487ae | Link has accessible name |
QW-ACT-R13 | 6cfa84 | Element with aria-hidden has no focusable content |
QW-ACT-R14 | b4f0c3 | meta viewport does not prevent zoom |
QW-ACT-R15 | 80f0bf | audio or video has no audio that plays automatically |
QW-ACT-R16 | e086e5 | Form control has accessible name |
QW-ACT-R17 | 23a2a8 | Image has accessible name |
QW-ACT-R18 | 3ea0c8 | id attribute value is unique |
QW-ACT-R19 | cae760 | iframe element has accessible name |
QW-ACT-R20 | 674b10 | role attribute has valid value |
QW-ACT-R21 | 7d6734 | svg element with explicit role has accessible name |
QW-ACT-R22 | de46e4 | Element within body has valid lang attribute |
QW-ACT-R23 | c5a4ea | video element visual content has accessible alternative |
QW-ACT-R24 | 73f2c2 | autocomplete attribute has valid value |
QW-ACT-R25 | 5c01ea | ARIA state or property is permitted |
QW-ACT-R26 | eac66b | video element auditory content has accessible alternative |
QW-ACT-R27 | 5f99a7 | This rule checks that each aria- attribute specified is defined in ARIA 1.1. |
QW-ACT-R28 | 4e8ab6 | Element with role attribute has required states and properties |
QW-ACT-R30 | 2ee8b8 | Visible label is part of accessible name |
QW-ACT-R31 | c3232f | Video element visual-only content has accessible alternative |
QW-ACT-R33 | ff89c9 | ARIA required context role |
QW-ACT-R34 | 6a7281 | ARIA state or property has valid value |
ISC
FAQs
ACT rules module for qualweb web accessibility evaluator
The npm package @qualweb/act-rules receives a total of 407 weekly downloads. As such, @qualweb/act-rules popularity was classified as not popular.
We found that @qualweb/act-rules demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.