This is a draft document supplied by the WCAG Techniques Task Force. It in no way represents a WCAG Working Group consensus or agreement and is provided for informational and discussion purposes only. The accessibility test listed below should not be construed as required for conformance with the proposed WCAG2.
area
should not open new window without warning.Copyright 2005, ATRC, University Of Toronto, All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply.
This test case was created by the ATRC at the University Of Toronto. It should not be construed as required for conformance with the proposed WCAG2.
The complete list of tests may be found at http://www.w3.org/WAI/GL/WCAG20/tests/
Comments on this test may be made to the WCAG mailing list.
As part of the conformance test process, this test has a status of 'assigned'.
This test is not required for conformance to the current WCAG2. It is provided for discussion and informational purposes only.
There are no techniques related to this test.
There are no prerequisite tests for this test.
target
attribute on each area
element.area
element has a target
attribute then check if the target
attribute's value is one of _self, _top, or _parent.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.area
element opens a new window then the content must contain a warning to the user.area
element opens a new window.Any accessibility check may be performed after this test.
These test files contain examples of the accessibility problem detectable by this test. They may also contain more accessibility problems than the one described in this test. Please ignore any extraneous accessibility problems in these files.
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>
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>
area
has target of "_top".)
<!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="_top"/>
</map></body>
</html>
area
has target of "_parent".)
<!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="_parent"/>
</map></body>
</html>