The following changes should be simple, without altering the look and feel
of the page:
1. The page should have a header, main, and footer.
2. Each table should have scope attributes on th elements.
3. Monospaced text in the patterns list should use a code element.
4. The small text within the h1 should use a small element instead of a
span.
Discussed with accessibility team member Thibaud Colas, who made this
example page for the HTTP 404 error:
https://static-django-
demo.netlify.app/django_admin_tests/v5.1/english/defaults/404/
--
Ticket URL: <https://code.djangoproject.com/ticket/35143>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* component: contrib.admin => Error reporting
* stage: Unreviewed => Accepted
Comment:
Agreed. Accessibility improvements are always welcome.
--
Ticket URL: <https://code.djangoproject.com/ticket/35143#comment:1>
* owner: nobody => Marijke Luttekes
* status: new => assigned
Comment:
I will pick this up, as discussed with Thibaud earlier!
--
Ticket URL: <https://code.djangoproject.com/ticket/35143#comment:2>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/35143#comment:3>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/35143#comment:4>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/35143#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"b9e2a3fc63e68d248d528c73736275ca2746872d" b9e2a3fc]:
{{{#!CommitTicketReference repository=""
revision="b9e2a3fc63e68d248d528c73736275ca2746872d"
Fixed #35143 -- Improved accessibility of 404/500 debug pages.
This:
- changes the header, main, and footer content areas to be rendered
in a <header>, <main>, and <footer> tags,
- adds scope attributes to <th>,
- uses <code> for a patterns list,
- uses <small> instead of <span>.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35143#comment:6>