Accessibility: "No page regions" in sitemap.xml XSL transform

Created on 7 February 2023, almost 2 years ago
Updated 19 July 2024, 5 months ago

Problem/Motivation

Our accessibility testing tool (Pope Tech, which under-the-covers, uses WebAim) is showing a warning when scanning sitemap.xml

No page regions

What it means
No page regions or ARIA landmarks were found.

Why it matters:
Regions and ARIA landmarks identify significant page areas. Most web pages should have regions defined, particularly for the main content area.

How to fix it:
If the page has visual regions or significant page areas, ensure the regions are defined with header, nav, main, footer, etc. elements.

This issue has been classified as a bug, instead of a feature request per Drupal's Accessibility statement page :

The Drupal community tries to fix accessibility issues in the development process. Everything is documented in the issue queue, and tagged for accessibility. Our community has decided that accessibility is essential. In Drupal 7, the community decided to see accessibility barriers as bugs, rather than feature requests. This resulted in us raising awareness and changing the culture of the community.

Steps to reproduce

Run WebAim Wave tool against /sitemap.xml in browser.

Proposed resolution

Add <header>, <footer> and <main> HTML tags to the XSL transform.

Remaining tasks

  • Write patch

User interface changes

N/a

API changes

N/a

Data model changes

N/a

📌 Task
Status

Fixed

Version

4.0

Component

Code

Created by

🇪🇨Ecuador jwilson3

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024