ACT-R1: Meta refresh and redirect is not used
Important Information for reviewing ACT Rules
Important: The ACT Rules on this page are a demonstration of how they might be published by the W3C. The goal of this page is to add concrete examples for the Accessibility Conformance Testing Rules Format (DRAFT). Neither the ACT Rules, or the way they are presented here has been approved by the Accessibility Guidelines Working Group. If you have feedback, please comment by filing GitHub issues in the WCAG ACT repository, if this is not feasible, by email to email@example.com.
This conformance rule relates to:
- Success Criterion 2.2.1 (Timing Adjustable)
- Success Criterion 3.2.5 (Change on Request)
This test checks if meta element is not used for delayed redirecting or refreshing.
- H76: Using meta refresh to create an instant client-side redirect
- F40: Failure of Success Criterion 2.2.1 and 2.2.4 due to using meta redirect with a time limit
- F41: Failure of Success Criterion 2.2.1, 2.2.4, and 3.2.5 due to using meta refresh with a time-out
- This test assumes no functionality was provided by the website for the user to adjust the timer.
Select all elements that match the following CSS selector:
Take the value of the content attribute of the selected element.
Remove any characters starting after the first comma or semicolon from the value.
Parse the remainder to an integer.
If the integer is invalid or 0, return step1-pass
Else return step1-fail
The resulting assertion is as follows,
|subject||the selected element|
|result||« One TestResult from below »|
|description||« todo »|
|description||Meta refresh should not be used unless it is instantaneous.|
This is the first version of this rule.
To validate the implementation of this rule, all test cases for ACT-R1 must be passed.