Level 1
10.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.
Priority 2
10.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.
Priority 2
10.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.
3.2 Predictable: Make Web pages appear and operate in predictable ways.
Success Criteria 3.2.2 On Input (A)
3.2 Predictable: Make Web pages appear and operate in predictable ways.
Success Criteria 3.2.2 On Input (A)
area should not open new window without warning.
area opens new window may be missing warning.
area element, target attribute values must contain any one of (case insensitive) _self, _top, _parent.
| 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. |
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.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 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>