Element

script

Error Type

Potential

Guidelines

  • Stanca Act
    Guideline GroupRequirement 15: Script/Object Alternatives

Requirement

Content must be accessible when script is disabled.

Error

Content may not be accessible when script is disabled.

Short Description

This error will be generated for all script elements.

How To Determine

Question Is the content accessible when the script is disabled?
PASS Content is accessible when script is disabled.
FAIL Content is not accessible when script is disabled.

Steps To Check

Procedure

1. Remove or disable each script within the document.

Expected Result

1. The content must be accessible when the script is disabled.

Failed Result

1. Modify the content so it is accessible when the script is disabled.

Examples

Pass Examples

Does not contain a script element.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<title>OAC Testfile - Check #88 - Negative</title>
</head>
<body>
</body>
</html>

Fail Examples

Contains a script element.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<title>OAC Testfile - Check #88 - Positive</title>
</head>
<body>
<script/>
<noscript>Alternate content for script</noscript>
</body>
</html>
Web site engine's code is copyright © 2023
Inclusive Design Institute