<?xml version="1.0" encoding="UTF-8"?>
<testCaseDescription xmlns:earlwd="http://www.w3.org/WAI/ER/EARL/nmg-strawman#"
    xmlns:http="http://www.w3.org/2006/http#"
    xmlns:uri="http://www.w3.org/2006/uri#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:btw="http://bentoweb.org/refs/TCDL2.0/"
    xmlns:tcd="http://bentoweb.org/refs/TCDL1.1"
    xmlns="http://bentoweb.org/refs/TCDL2.0/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:html="http://www.w3.org/1999/xhtml"
    id="sc1.1.1_l1_025"
    xsi:schemaLocation="http://bentoweb.org/refs/TCDL2.0/ http://bentoweb.org/refs/schemas/tcdl2.0.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd http://www.w3.org/1999/xhtml http://www.w3.org/2004/07/xhtml/xhtml1-strict.xsd http://www.w3.org/1999/xlink http://bentoweb.org/refs/schemas/xlink.xsd http://www.w3.org/2006/http# http://bentoweb.org/refs/schemas/http.xsd http://www.w3.org/2006/uri# http://bentoweb.org/refs/schemas/uri.xsd http://www.w3.org/WAI/ER/EARL/nmg-strawman# http://bentoweb.org/refs/schemas/earlwd.xsd">
  <formalMetadata>
    <title>Alternative text for areas in client-side image maps: img element with image map; empty alt attributes in image map areas and URL as alt for image</title>
    <dc:creator xsi:type="btw:dcHtmlInline">Developed by <html:a href="http://www.w3.org/"><html:acronym title="World Wide Web Consortium">W3C</html:acronym></html:a>/<html:a href="http://www.w3.org/WAI/"><html:acronym title="Web Accessibility Initiative">WAI</html:acronym></html:a>'s <html:a href="http://www.w3.org/WAI/ER/">Evaluation and Repair Tools Working Group</html:a> (ERT WG). We invite comments and discussion. Please address your feedback to <html:a href="mailto:public-wai-ert-tests@w3.org">public-wai-ert-tests@w3.org</html:a>, a mailing list with a <html:a href="http://lists.w3.org/Archives/Public/public-wai-ert-tsdtf/">public archive</html:a>.</dc:creator>
    <dc:language>en</dc:language>
    <dc:rights xsi:type="btw:dcHtmlInline"><html:a rel="Copyright" href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</html:a> © 1994-2008 <html:a href="http://www.w3.org/"><html:acronym title="World Wide Web Consortium">W3C</html:acronym></html:a><html:sup>®</html:sup> (<html:a href="http://www.csail.mit.edu/"><html:acronym title="Massachusetts Institute of Technology">MIT</html:acronym></html:a>, <html:a href="http://www.ercim.org/"><html:acronym title="European Research Consortium for Informatics and Mathematics">ERCIM</html:acronym></html:a>, <html:a href="http://www.keio.ac.jp/">Keio</html:a>), All Rights Reserved. <html:acronym title="World Wide Web Consortium">W3C</html:acronym><html:a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</html:a>, <html:a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</html:a>, <html:a rel="Copyright" href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</html:a> and <html:a rel="Copyright" href="http://www.w3.org/Consortium/Legal/copyright-software">software licensing</html:a> rules apply. Your interactions with this site are in accordance with our <html:a href="http://www.w3.org/Consortium/Legal/privacy-statement#Public">public</html:a> and <html:a href="http://www.w3.org/Consortium/Legal/privacy-statement#Members">Member</html:a> privacy statements.</dc:rights>
    <dc:date xsi:type="btw:btwDate">$Date: 2009/04/29 09:05:59 $</dc:date>
    <status>unconfirmed</status>
    <version>$Revision: 1.10 $</version>
  </formalMetadata>
  <technologies>
    <technicalSpec xlink:href="http://www.w3.org/TR/xhtml1/" handle="XHTML10" mediatype="application/xhtml+xml">
      <specName><html:acronym>XHTML</html:acronym>™ 1.0 The Extensible HyperText Markup Language (Second Edition)</specName>
      <testElements>
        <testElement>
          <elementName localname="img" namespace="http://www.w3.org/1999/xhtml"/>
          <specReference xlink:href="http://www.w3.org/TR/1999/REC-html401-19991224/struct/objects.html#adef-alt">How to specify alternate text</specReference>
        </testElement>
        <testElement>
          <elementName localname="map" namespace="http://www.w3.org/1999/xhtml"/>
          <specReference xlink:href="http://www.w3.org/TR/1999/REC-html401-19991224/struct/objects.html#idx-client-side_image_map-1">How to create client-side image maps</specReference>
        </testElement>
        <testElement>
          <elementName localname="area" namespace="http://www.w3.org/1999/xhtml"/>
          <specReference xlink:href="http://www.w3.org/TR/1999/REC-html401-19991224/struct/objects.html#edef-AREA">Client-side image maps: the <html:code>map</html:code> and <html:code>area</html:code> elements</specReference>
        </testElement>
      </testElements>
    </technicalSpec>
  </technologies>
  <testCase>
    <dc:description xsi:type="btw:dcHtmlInline">A document with a client-side image map; the image represents a traffic light. 
      The <html:code>img</html:code> element has an <html:code>alt</html:code> attribute that duplicates the <html:code>src</html:code> attribute with the <html:acronym>URI</html:acronym> to the image instead of an appriopriate text alternative. 
      The <html:code>alt</html:code> attributes of the image map's <html:code>area</html:code> elements are empty (the <html:code>alt</html:code> attributes are present, but there is no text or white space between the double quotation marks).
    </dc:description>
    <purpose>
      <p>This test case is intended to fail: instead of an appropriate text alternative, the <html:code>alt</html:code> attribute contains the <html:acronym>URL</html:acronym> to the image file. 
        In addition, the text alternatives for the areas of the image map are empty.
      </p>
    </purpose>
    <files>
      <file>
        <http:GetRequest>
          <http:requestURI>
            <http:absoluteURI>../testfiles/sc1.1.1_l1_025.html</http:absoluteURI>
          </http:requestURI>
          <http:version>1.1</http:version>
        </http:GetRequest>
      </file>
    </files>
  </testCase>
  <rules>
    <rule xlink:href="http://bentoweb.org/refs/rulesets.xml#WCAG2_20070517_1.1_text-equiv-all">
      <locations expectedResult="fail">
        <location techrefs="F30 ">
          <earlwd:lineCharLen>
            <earlwd:line>15</earlwd:line>
            <earlwd:char>7</earlwd:char>
          </earlwd:lineCharLen>
          <earlwd:xPath>
            <earlwd:expression>/h:html/h:body/h:div/h:p[2]/h:img/@alt</earlwd:expression>
          </earlwd:xPath>
        </location>
        <location techrefs="F30 ">
          <earlwd:lineCharLen>
            <earlwd:line>18</earlwd:line>
            <earlwd:char>46</earlwd:char>
          </earlwd:lineCharLen>
          <earlwd:xPath>
            <earlwd:expression>/h:html/h:body/h:div/h:map/h:area[1]/@alt</earlwd:expression>
          </earlwd:xPath>
        </location>
        <location techrefs="F30 ">
          <earlwd:lineCharLen>
            <earlwd:line>19</earlwd:line>
            <earlwd:char>47</earlwd:char>
          </earlwd:lineCharLen>
          <earlwd:xPath>
            <earlwd:expression>/h:html/h:body/h:div/h:map/h:area[2]/@alt</earlwd:expression>
          </earlwd:xPath>
        </location>
        <location techrefs="F30 ">
          <earlwd:lineCharLen>
            <earlwd:line>20</earlwd:line>
            <earlwd:char>47</earlwd:char>
          </earlwd:lineCharLen>
          <earlwd:xPath>
            <earlwd:expression>/h:html/h:body/h:div/h:map/h:area[3]/@alt</earlwd:expression>
          </earlwd:xPath>
        </location>
      </locations>
      <techniques>
        <technique id="F30" xlink:href="http://www.w3.org/TR/2007/WD-WCAG20-TECHS-20070517/#F30"/>
      </techniques>
      <techComment>
        <p>The <html:code>img</html:code> element has a <html:code>alt</html:code> attribute containing the relative <html:acronym>URL</html:acronym> of the image file.
          Moreover, since each of the <html:code>area</html:code> elements in the map <html:code>element</html:code> has an <html:code>alt</html:code> attribute, this case does not pass.
        </p>
        <p>This test case maps to failure <html:span class="technique">F30: Failure of SC 1.1.1 due to using text alternatives that are not alternatives (e.g. filenames or placeholder text)</html:span>.</p>
        <p>(In Mozilla 1.7.3, SeaMonkey 1.1, Firefox 1.0, 1.5 and 2.0, the map does not work if the <html:code>map</html:code> element has only an <html:code>id</html:code> and no <html:code>name</html:code> attribute.)</p>
      </techComment>
    </rule>
  </rules>
  <namespaceMappings>
    <namespace nsPrefix="h" nsURI="http://www.w3.org/1999/xhtml"/>
  </namespaceMappings>
</testCaseDescription>