Names and descriptions bookmarklets explained

These bookmarklets help you inspect how accessible names and descriptions have been provided. Use them to review ARIA naming techniques, referenced content and potential naming issues.

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

On this page


Bookmarklet 11. Highlight aria-label

Highlights all elements that use the aria-label attribute. Where present, the bookmarklet displays the value of the aria-label so you can quickly review the accessible name without inspecting the HTML.

It also flags empty aria-label values and identifies cases where aria-label has been applied to roles that prohibit author-provided accessible names.

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-label bookmarklet.
  4. Scroll through the page to review the highlighted elements.
  5. Press Esc to remove the overlay.

When reviewing the page, check for:


Bookmarklet 12. Highlight aria-labelledby

Highlights all elements that use the aria-labelledby attribute, together with the elements they reference. This makes it easier to see where an accessible name comes from and how the relationship has been created.

The bookmarklet identifies:

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-labelledby bookmarklet.
  4. Scroll through the page to review each highlighted element and its referenced targets.
  5. Press Esc to remove the overlay.

When reviewing the page, check for:


Bookmarklet 13. Highlight aria-describedby

Highlights all elements that use the aria-describedby attribute, together with the elements they reference. This makes it easier to see where additional descriptions come from and how they are associated with an element.

The bookmarklet identifies:

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-describedby bookmarklet.
  4. Scroll through the page to review each highlighted element and its referenced descriptions.
  5. Press Esc to remove the overlay.

When reviewing the page, check for:


Bookmarklet 14. Highlight name mismatches

Highlights links and buttons where the visible label and accessible name are compared. The bookmarklet identifies whether they:

This makes it easy to identify controls that may be difficult to operate using speech recognition software.

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 name mismatches bookmarklet.
  4. Scroll through the page to review the highlighted links and buttons.
  5. Press Esc to remove the overlay.

When reviewing the page, check for:


Bookmarklet 15. Highlight name-prohibited roles

Highlights elements that have been given an author-provided accessible name using aria-label or aria-labelledby, even though their role does not allow one.

Each affected element is labelled with the message:

NAME PROHIBITED: [role]

The bookmarklet checks roles that cannot be named in ARIA 1.2, together with additional name-prohibited roles identified in the ARIA 1.3 draft.

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 name-prohibited roles bookmarklet.
  4. Scroll through the page to review any highlighted elements.
  5. Check the displayed role and inspect how the accessible name has been provided.
  6. Press Esc to remove the overlay.

When reviewing the page, check for: