- World Wide Web Consortium (W3C)
- International Organization for Standardization (ISO)
- Cognitive and Learning Disabilities Accessibility Task Force (Coga TF) - W3C
- Accessibility Guidelines Working Group (AG WG) - W3C
- Accessible Platform Architectures Working Group (APA WG) - W3C
- WAI-Adapt Task Force (formerly Personalization) - W3C
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TextDecoderStream extends TransformStream { | |
constructor(encoding = 'utf8') { | |
super({ | |
start() { | |
this.decoder = new TextDecoder(encoding); | |
}, | |
transform(chunk, controller) { | |
controller.enqueue(this.decoder.decode(chunk, { stream: true })); | |
}, | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// start scriptwriter (see https://scriptwriter.dev) | |
function* walkAxTree(node, filter) { | |
if (filter(node)) { | |
yield node; | |
} | |
const children = node.children || []; | |
for (const child of children) { | |
yield* walkAxTree(child, filter); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Minimal Custom Elements (light & shadow)!</title> | |
<!-- Import the webpage's stylesheet --> | |
<link rel="stylesheet" href="/style.css" /> | |
<!-- Import the webpage's javascript file --> | |
<script src="/script.js" defer></script> |
- install playwright
npm i -g playwright
. - install scriptwriter
npm i -g scriptwriter
. - create a folder to run scriptwriter from and to load and save files.
- install axe-core
npm -i axe-core
. You can load theaxe-core.command.json
file to show you how to build your own commands. - start scriptwriter
scriptwriter
. You can load into-b firefox
or-b webkit
. - copy the
axe.command.js
file to your folder and.load axe.command
or paste it right into the repl. - next, navigate to a site using
page.goto
or if you usedscriptwriter --no-headless
you can browse.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array.from(document.querySelectorAll('[id]')).reduce((cache, el) => { | |
const els = cache[el.id] || []; | |
cache[el.id] = els.concat(el); | |
return cache; | |
}, {}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const got = require('got'); | |
const cheerio = require('cheerio'); | |
const natural = require('natural'); | |
const sentenceTokenizer = new natural.SentenceTokenizer(); | |
const wordTokenizer = new natural.WordTokenizer(); | |
const automatedReadability = require('automated-readability'); | |
const page = 'https://www.24a11y.com/2019/automating-inclusive-documentation/'; | |
const { smaller } = require('@betterer/constraints'); | |
module.exports = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$$('h1,h2,h3,h4,h5,h6,[role="heading"][aria-level]').map(el => [ | |
`${el.tagName.replace(/\D/, '')}${el.getAttribute('aria-level') || ''}`, | |
el.textContent.trim(), | |
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Math.floor(Math.random() * 16777215).toString(16) |
NewerOlder