Creates accessibility snapshot from DOM and AOM
npm install acc-snapshotCreates accessibility snapshot from DOM and AOM.
acc-snapshot requires AOM to be enabled in the browser. See http://wicg.github.io/aom/caniuse.html for instructions.
The package exports:
- main class AccessibilitySnapshot
- reporter class TextReporter
- extractor classes domProps and focusProps
These can be used to extract AOM information:
``js``
let body = document.querySelector("body")
let snapshot = new AccessibilitySnapshot(body)
let reporter = new TextReporter(console.log, [focusProps, domProps])
await snapshot.process(reporter)
MIT.