Default error pages get the session's lang on English text
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 82/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- html, java
- Área
- accessibility
Línea de trabajo
Las cuatro páginas viven en el paquete markup.html pages (PageExpiredErrorPage, AccessDeniedPage, InternalErrorPage, ExceptionErrorPage) y todas extienden WebPage. Lee primero WebPage#onHtmlTag para confirmar que un lang de markup gana sobre el locale de la sesión y suprime dir; después añade lang="en" a la etiqueta <html> de cada página y sustituye el doctype HTML 4.01 Transitional por <!DOCTYPE html>. Hecho significa que cada página renderiza texto en inglés con lang="en" y sin dir incluso cuando el locale de la sesión es nl-NL o RTL; revisa las pruebas existentes de markup de páginas para ver cómo se comprueba la etiqueta renderizada.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Since #1870, every WebPage gets lang and dir on its <html> tag from the page locale. Wicket's default error pages extend WebPage, but their text is hard-coded English and they have no resource bundles:
PageExpiredErrorPageAccessDeniedPageInternalErrorPageExceptionErrorPage
A user whose session locale is nl-NL now gets <html lang="nl-NL" dir="ltr"> on a page that reads "Page Expired". Before #1870, lang was missing. Now it is wrong: screen readers read the English text with Dutch pronunciation, which fails WCAG 2.2 SC 3.1.1 (Language of Page, level A). A user with an RTL locale also gets dir="rtl" on English text.
The pages also still use the HTML 4.01 Transitional doctype.
Possible fix: put lang="en" on the <html> tag of these four pages. A markup lang takes precedence in WebPage#onHtmlTag and also suppresses dir. Replace the doctype with <!DOCTYPE html> at the same time. Translating the pages through resource bundles and dropping the markup lang would be the alternative, but contributed translations for them don't exist yet.
The accessibility chapter of the user guide (#1847) recommends replacing these pages with application pages and mentions this behaviour.
- Lenguaje dominante
- Java
- Estrellas
- 800
- Forks
- 423
- Merge medio
- 1 d 1 h
- PR fusionados (30 d)
- 170
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/wicket
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Fix dark-mode table headers and phone-width overflow in the reference guide's CSSPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
apache/wicket#1891 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Document and enforce pull request review guidelinesPosiblemente ocupada @dashorst la tomó hace 7 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
COOP and COEP exemptions compare with the context path, so page exemptions never matchPosiblemente ocupada @asvanberg la tomó hace 25 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
apache/wicket#1661 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
Todos los issues de apache/wicket
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
Los mantenedores suelen responder en 1 día
-
RIS export splits an organization name containing “and” into multiple authorsPosiblemente ocupada @Gautam-aman la tomó hoy. Abiertostatus: needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
JabRef/jabref#17821 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
FailureContext.java rounds down thresholds in lastedAtLeast()Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día