-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List known validation errors/warnings #1280
Comments
Linked to alphagov/govuk-design-system#677 |
Known validation errors / warnings⬇️ Something to point users back to until we can document the below as per #1687.
|
{#- We override the fieldset's role to 'group' because otherwise JAWS does not |
Flagged by
Siteimprove Chrome extension
Next steps
Wont-fix
▶️ Date input
Message
The group role is unnecessary for element fieldset.
Explanation / issue raised
We have an issue to investigate this: #1590
Flagged by
Next steps
▶️ Footer
Message
The contentinfo role is unnecessary for element footer
Explanation / issue raised
To support IE8-10 which have no or partial support for HTML5.
Flagged by
Next steps
Wont-fix while we support older IE
▶️ Header
Message
The banner role is unnecessary for element header.
Explanation / issue raised
To support IE8-10 which have no or partial support for HTML5.
Flagged by
Next steps
Wont-fix while we support older IE
▶️ Header
Message
Attribute src not allowed on element image at this point.
Explanation / issue raised
The <image> element is a valid SVG element. In SVG, you would specify |
Flagged by
Next steps
Fixed as of GOV.UK Frontend v3.13.0 (#2229)
▶️ Header
Message
Possible misuse of aria-label
Explanation / issue raised
Flagged by
Next steps
Fixed in v4.0.0 (#2427)
▶️ Button - disabled link
Message
Color contrast is insufficient
Explanation / issue raised
Non-text contrast of non-active elements
Flagged by
Axe Chrome extension
Next steps
Wont-fix? The problem is inherent in the wider design pattern with things "greyed out" to indicate their unavailability. We discourage their use as much as possible.
▶️ Button - disabled warning
Message
Color contrast is insufficient
Explanation / issue raised
Non-text contrast of non-active elements
Flagged by
Siteimprove Chrome extension
Next steps
Wont-fix?The problem is inherent in the wider design pattern with things "greyed out" to indicate their unavailability. We discourage their use as much as possible.
▶️ Details
Message
<dl>
elements must only directly contain properly-ordered<dt>
and<dd>
groups,<script>
or<template>
elements
Explanation / issue raised
Valid as of HTML 5.2
Flagged by
Webhint
Next steps
Wont-fix
▶️ Page template
Message
All page content must be contained within landmarks
Explanation / issue raised
See #1604 (comment)
Flagged by
Axe
Next steps
Wont-fix
▶️ Footer - Crown Copyright Logo
Message
Ensure the contrast between foreground and background meets WCAG 2 AA contrast ratio thresholds
Explanation / issue raised
Colour contrast issue flagged. We don't believe this is a WCAG fail as it meets the 3:1 ratio for non-text content / meaningful graphics.
Flagged by
Axe
Next steps
▶️ Function.prototype.bind
polyfill - CWE-749
Message
Reported in #2751.
Line 125 of the Function.prototype.bind
polyfill is flagged as Common Weakness Enumeration 749, as use of the Function
constructor may allow for aribtrary code execution.
Explanation / issue raised
We use this polyfill to account for functionality that is unavailable in Internet Explorer 8. As a polyfill, this code is only executed by browsers that require it, limiting the scope of exploitation to legacy browsers which (with the exception of IE8) are not supported by GOV.UK Frontend.
The polyfill was not authored by the Design System team and is derived from Polyfill.io. Their version of the code is here.
Flagged by
Unknown
Next steps
We intend to remove polyfills like this one soon, as part of our plan to reduce IE support generally. We're unlikely to fix this in the interim.
Added a new entry to the table for details:
HTML 5.2 permits Thanks to @MalcolmVonMoJ for flagging. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hi, |
All of these issues are now listed in a public GitHub Project – I plan to raise a pull request to update links to this issue to point to the new project and then close this issue. |
Description
Once we've finished the WCAG 2.1 compliance work, we should consider increasing visibility of any known validation errors with our code due to accessibility, legacy etc fixes. This would help users to know which errors/warnings are known / expected.
An example would be the
role
attribute we add to<header>
,<footer>
,<button>
for older browsers that don't support HTML5 elements, and thesrc
on SVG issue.Checklist
The text was updated successfully, but these errors were encountered: