0.2.1 • Published 5 years ago

acc-snapshot v0.2.1

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

acc-snapshot

Creates accessibility snapshot from DOM and AOM.

Requirements

acc-snapshot requires AOM to be enabled in the browser. See http://wicg.github.io/aom/caniuse.html for instructions.

Usage

The package exports:

  • main class AccessibilitySnapshot
  • reporter class TextReporter
  • extractor classes domProps and focusProps

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)

License

MIT.

0.2.1

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago