States bookmarklets explained

These bookmarklets help you inspect dynamic ARIA state attributes on custom interactive widgets. Use them to review expanded and checked states, and to verify that state changes are correctly reflected in the markup.

This page explains the bookmarklets available on the Intopia's accessibility testing bookmarklets page.

On this page


Bookmarklet 22. Highlight aria-expanded

Highlights elements that use the aria-expanded attribute. It distinguishes between expanded and collapsed states, making it easy to inspect controls that show or hide content.

It also flags invalid aria-expanded values.

Video demonstration

Transcript

Use this bookmarklet when you want to:

How to use it

  1. Drag a bookmarklet to your browser's Bookmarks Bar.
  2. Open the page you want to inspect.
  3. Click the Highlight aria-expanded bookmarklet.
  4. Scroll through the page to review the highlighted elements.
  5. If you expand or collapse a control, run the bookmarklet again to refresh the displayed values.
  6. Press Esc to remove the overlay.

When reviewing the page, check for:


Bookmarklet 23. Highlight aria-checked

Highlights elements that use the aria-checked attribute. It distinguishes between the supported checked states:

It also flags invalid aria-checked values. This makes it easy to inspect the current state of checkboxes, switches and other checkable widgets.

Video demonstration

Transcript

Use this bookmarklet when you want to:

How to use it

  1. Drag a bookmarklet to your browser's Bookmarks Bar.
  2. Open the page you want to inspect.
  3. Click the Highlight aria-checked bookmarklet.
  4. Scroll through the page to review the highlighted elements.
  5. If you interact with a widget, run the bookmarklet again to refresh the displayed values.
  6. Press Esc to remove the overlay.

When reviewing the page, check for: