ACT Rules for WCAG 2.0

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 public-wcag-act-comments@w3.org.

Accessibility Requirements

This conformance rule relates to:

Description

This test checks if meta element is not used for delayed redirecting or refreshing.

Background

Assumptions

Test procedure

Selector

Select all elements that match the following CSS selector:

meta[http-equiv="refresh"][content]

Step 1

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

Outcomes

The resulting assertion is as follows,

Property Value
type Assertion
test act:ACT-R1
subject the selected element
mode earl:automatic
result « One TestResult from below »

step1-pass

Property Value
type TestResult
outcome Passed
description « todo »

step1-fail

Property Value
type TestResult
outcome Failed
description Meta refresh should not be used unless it is instantaneous.

Changelog

This is the first version of this rule.

Validation Tests

To validate the implementation of this rule, all test cases for ACT-R1 must be passed.