<?xml version="1.0" encoding="UTF-8"?>
<testCaseDescription xmlns="http://bentoweb.org/refs/TCDL2.0/" xmlns:btw="http://bentoweb.org/refs/TCDL2.0/" xmlns:tcd="http://bentoweb.org/refs/TCDL1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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" 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#" id="sc1.4.2_l1_003" 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>Background sound with object element via scripting</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:07:26 $</dc:date>
      <status>unconfirmed</status><!--@@fix Should have been L1!-->
      <version>$Revision: 1.9 $</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="object" namespace="http://www.w3.org/1999/xhtml"/>
              <specReference xlink:href="http://www.w3.org/TR/1999/REC-html401-19991224/struct/objects.html#edef-OBJECT">Generic inclusion: the OBJECT element</specReference>
            </testElement>
            <testElement>
              <elementName localname="script" namespace="http://www.w3.org/1999/xhtml"/>
              <specReference xlink:href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/scripts.html#edef-SCRIPT">The SCRIPT element</specReference>
            </testElement>
         </testElements>
      </technicalSpec>
   </technologies>
   <testCase >
      <dc:description xsi:type="btw:dcHtmlInline">Document containing reference to sound via the object element being inserted via scripting.</dc:description>
      <purpose>
         <p>The test is intended to fail because the sound cannot be stopped in Firefox or Opera.</p>
      </purpose>
      <expertGuidance>
         <p>The browser must be JavaScript-enabled.</p>
      </expertGuidance>
      <files>
         <file>
            <http:GetRequest>
               <http:requestURI>
                  <http:absoluteURI>../testfiles/sc1.4.2_l2_003.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.4_visual-audio-contrast-dis-audio">
         <locations expectedResult="fail">
            <location techrefs="F23 "><!--If the test file uses client-side or server-side scripting to write content, check that the locations refer to the generated content!-->
               <earlwd:lineCharLen>
                  <earlwd:line>8</earlwd:line>
                  <earlwd:char>7</earlwd:char>
               </earlwd:lineCharLen>
               <earlwd:xPath>
                  <earlwd:expression>/h:html/h:body/h:p/h:script</earlwd:expression>
               </earlwd:xPath>
            </location>
            <location techrefs="F23 "><!--If the test file uses client-side or server-side scripting to write content, check that the locations refer to the generated content!-->
               <earlwd:xPath>
                  <earlwd:expression>/h:html/h:body/h:p/h:object</earlwd:expression>
               </earlwd:xPath>
            </location>
         </locations>
         <techniques>
            <technique id="F23" xlink:href="http://www.w3.org/TR/2007/WD-WCAG20-TECHS-20070517/#F23"/>
         </techniques>
         <techComment>
            <p>The <html:code>object</html:code> element causes plays a sound that cannot be stopped.</p>
            <p>This test case maps to failure <html:span class="technique">F23: Failure of SC 1.4.2 due to playing a sound longer than 3 seconds where there is no mechanism to turn it off</html:span>.</p>
         </techComment>
      </rule>
   </rules>
   <namespaceMappings>
      <namespace nsPrefix="h" nsURI="http://www.w3.org/1999/xhtml"/>
   </namespaceMappings>
</testCaseDescription>