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