Access 6.2.2.2

From Htmlpedia
Jump to: navigation, search

Access: [6.2.2.2]: text equivalents require updating (script) (Priority 1)

Cause:

Whenever dynamic content changes, text equivalents must also be updated. If a script is used to generate dynamic content, provide a text equivalent by including a <noscript> section in the document.

Example:

Bad
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>aert1.0/6.2.2</title>
</head>
<body>
<script> the script </script>
</body>
</html>


Good
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>aert1.0/6.2.2</title>
</head>
<body>
<script> the script </script>
<noscript> static equivalent </noscript>
</body>
</html>

Solution:

Always include a static equivalent to any dynamic content and ensure it is kept up-to-date.

References: