dashorst opened a new issue, #1924: URL: https://github.com/apache/wicket/issues/1924
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: - `PageExpiredErrorPage` - `AccessDeniedPage` - `InternalErrorPage` - `ExceptionErrorPage` 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. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
