tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_invalid_img.xhtml (1135B)


      1 <html xmlns="http://www.w3.org/1999/xhtml">
      2 <head>
      3  <title>invalid html img</title>
      4 
      5  <link rel="stylesheet" type="text/css"
      6        href="chrome://mochikit/content/tests/SimpleTest/test.css" />
      7 
      8  <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
      9 
     10  <script type="application/javascript"
     11          src="../common.js"></script>
     12  <script type="application/javascript"
     13          src="../role.js"></script>
     14 
     15  <script>
     16  <![CDATA[
     17    function doTest() {
     18      document.getElementsByTagName("img")[0].firstChild.data = "2";
     19 
     20      var accTree = {
     21        role: ROLE_GRAPHIC,
     22        children: [],
     23      };
     24      testAccessibleTree("the_img", accTree);
     25      SimpleTest.finish();
     26    }
     27 
     28    SimpleTest.waitForExplicitFinish();
     29    addA11yLoadEvent(doTest);
     30  ]]>
     31  </script>
     32 </head>
     33 <body>
     34 
     35  <a target="_blank"
     36     title="use HyperTextAccessible for invalid img"
     37     href="https://bugzilla.mozilla.org/show_bug.cgi?id=852129">
     38    Mozilla Bug 852129
     39  </a>
     40 
     41  <p id="display"></p>
     42  <div id="content" style="display: none"></div>
     43  <pre id="test">
     44  </pre>
     45 
     46  <img id="the_img">1</img>
     47 </body>
     48 </html>