Element

script

Error Type

Known

Guidelines

  • BITV 1.0 (Level 2)
    Guideline GroupLevel 1
    Guideline Subgroup6.5 Ensure that dynamic content is accessible or provide an alternative presentation or page.
  • Section 508
    Guideline GroupL - script must have functional text
  • Stanca Act
    Guideline GroupRequirement 15: Script/Object Alternatives
  • WCAG 1.0 (Level A)
    Guideline GroupPriority 1
    Guideline Subgroup1.1 Provide a text equivalent for every non-text element.

Requirement

script must have a noscript section.

Error

script must have a noscript section.

Short Description

script elements that occur within the body must be followed by a noscript section.

How To Repair

Add a noscript section immediately following the script that provides the same functionality as the script.

Steps To Check

Procedure

1. View the operation of each script in the content.
2. Check if the script operation is essential to the page content (it's not just eye-candy).
3. If the script operation is essential to the page content then check if there is a noscript section following.
4. Check if the noscript section provides an equivalent to the script.

Expected Result

1. Essential script must have a valid noscript section.

Failed Result

1. Add a noscript section after the script that is equivalent to the script.

Examples

Pass Examples

Contains both script and noscript.
<!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 #90 - Negative</title>
</head>
<body>
<script>
</script>
<noscript>Alternate content for script</noscript>
</body>
</html>

Fail Examples

Contains a script element without a noscript.
<!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 #90 - Positive</title>
</head>
<body>
<script/>
</body>
</html>
Web site engine's code is copyright © 2023
Inclusive Design Institute