Sc2 2 1+sc3 2 5 Meta Refresh

Description

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

Background

Assumptions

Test properties

Property Value
Test name Meta refresh and redirect is not used
Success Criterion 2.2.1 Timing Adjustable, 3.2.5 Change on Request
Test mode Automatic
Test environment DOM
Test subject Single web page

Test procedure

Selector

Test mode: automatic

Select each element matching: meta[http-equiv="refresh"][content]

Step 1

Test mode: automatic

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:

Outcome Passed
Testcase SC2-2-1+SC3-2-5-meta-refresh
ID SC2-2-1+SC3-2-5-meta-refresh-passed
Pointer Selected element

Else return:

Outcome Failed
Testcase SC2-2-1+SC3-2-5-meta-refresh
ID SC2-2-1+SC3-2-5-meta-refresh-failed
Error Meta refresh should not be used unless it is instantaneous.
Pointer Selected element