Element

area

Error Type

Likely

Guidelines

  • BITV 1.0 (Level 2)
    Guideline GroupLevel 1
    Guideline Subgroup10.1 Until user agents allow users to turn off spawned windows, do not cause pop-ups or other windows to appear and do not change the current window without informing the user.
  • WCAG 1.0 (Level AA)
    Guideline GroupPriority 2
    Guideline Subgroup10.1 Until user agents allow users to turn off spawned windows, do not cause pop-ups or other windows to appear and do not change the current window without informing the user.
  • WCAG 1.0 (Level AAA)
    Guideline GroupPriority 2
    Guideline Subgroup10.1 Until user agents allow users to turn off spawned windows, do not cause pop-ups or other windows to appear and do not change the current window without informing the user.
  • WCAG 2.0 (Level A)
    Guideline Group3.2 Predictable: Make Web pages appear and operate in predictable ways.
    Guideline SubgroupSuccess Criteria 3.2.2 On Input (A)
  • WCAG 2.0 (Level AA)
    Guideline Group3.2 Predictable: Make Web pages appear and operate in predictable ways.
    Guideline SubgroupSuccess Criteria 3.2.2 On Input (A)

Requirement

area should not open new window without warning.

Error

area opens new window may be missing warning.

Short Description

area element, target attribute values must contain any one of (case insensitive) _self, _top, _parent.

How To Determine

Question Is there a warning letting the user know that this area element opens a new window?
PASS User is warned that area opens in a new window.
FAIL User is not warned that area opens in a new window.

Steps To Check

Procedure

1. Check for the presence of a target attribute on each area element.
2. If the area element has a target attribute then check if the target attribute's value is one of _self, _top, or _parent.
3. If the target attribute's value is not _self, _top, or _parent then check if the content text contains a warning letting the user know that the imagemap will open a new window.

Expected Result

1. If the area element opens a new window then the content must contain a warning to the user.

Failed Result

1. Add a warning that the area element opens a new window.

Examples

Pass Examples

area has target of "_self".
<!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 #68 - Negative</title>
</head>
<body>
<map id="map1" name="map1">
  <area shape="rect" coords="0,0,30,30" href="reference.html" alt="reference section" target="_self"/>
</map></body>
</html>

Fail Examples

area has target of new window.
<!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 #68 - Positive</title>
</head>
<body>
<map id="map1" name="map1">
  <area shape="rect" coords="0,0,30,30" href="reference.html" alt="hello" target="new window"/>
</map></body>
</html>
Web site engine's code is copyright © 2023
Inclusive Design Institute