Creates 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
andfocusProps
These can be used to extract AOM information:
let body = document.querySelector("body")
let snapshot = new AccessibilitySnapshot(body)
let reporter = new TextReporter(console.log, [focusProps, domProps])
await snapshot.process(reporter)
MIT.