acc-snapshot

0.2.1 • Public • Published

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.

Package Sidebar

Install

npm i acc-snapshot

Weekly Downloads

0

Version

0.2.1

License

MIT

Unpacked Size

11.3 kB

Total Files

19

Last publish

Collaborators

  • jurokapsiar