OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 </head> | 4 </head> |
5 <body id="body"> | 5 <body id="body"> |
6 <p id="description">This tests that if both aria-labeledby and aria-labelledby a
re used (for reasons best known to the page author), then aria-labelledby is pre
ferred.</p> | 6 <p id="description">This tests that if both aria-labeledby and aria-labelledby a
re used (for reasons best known to the page author), then aria-labelledby is pre
ferred.</p> |
7 | 7 |
8 <button id="using-labelledby" aria-labelledby="epsilon" aria-label="Zeta">Delta<
/button> | 8 <button id="using-labelledby" aria-labelledby="epsilon" aria-label="Zeta">Delta<
/button> |
9 <button id="using-labeledby" aria-labeledby="theta" aria-label="Iota">Eta</butto
n> | 9 <button id="using-labeledby" aria-labeledby="theta" aria-label="Iota">Eta</butto
n> |
10 <button id="using-labeledby-and-labelledby" aria-labelledby="epsilon" aria-label
edby="theta" aria-label="Iota">Eta</button> | 10 <button id="using-labeledby-and-labelledby" aria-labelledby="epsilon" aria-label
edby="theta" aria-label="Iota">Eta</button> |
(...skipping 15 matching lines...) Expand all Loading... |
26 var li = document.createElement("li"); | 26 var li = document.createElement("li"); |
27 li.appendChild(document.createTextNode(str)); | 27 li.appendChild(document.createTextNode(str)); |
28 results.appendChild(li); | 28 results.appendChild(li); |
29 } | 29 } |
30 | 30 |
31 if (window.testRunner) | 31 if (window.testRunner) |
32 testRunner.dumpAsText(); | 32 testRunner.dumpAsText(); |
33 | 33 |
34 if (window.accessibilityController) { | 34 if (window.accessibilityController) { |
35 var usingLabelledby = getAccessibilityObject("using-labelledby"); | 35 var usingLabelledby = getAccessibilityObject("using-labelledby"); |
36 output("usingLabelledby.deprecatedTitle: [" + usingLabelledby.deprecated
Title + "]"); | 36 output("usingLabelledby.name: [" + usingLabelledby.name + "]"); |
37 output("usingLabelledby.deprecatedDescription: [" + usingLabelledby.dep
recatedDescription + "]"); | |
38 | 37 |
39 var usingLabeledby = getAccessibilityObject("using-labeledby"); | 38 var usingLabeledby = getAccessibilityObject("using-labeledby"); |
40 output("usingLabeledby.deprecatedTitle: [" + usingLabeledby.deprecatedTi
tle + "]"); | 39 output("usingLabeledby.name: [" + usingLabeledby.name + "]"); |
41 output("usingLabeledby.deprecatedDescription: [" + usingLabeledby.depre
catedDescription + "]"); | |
42 | 40 |
43 var usingLabeledbyAndLabelledby = getAccessibilityObject("using-labeledb
y-and-labelledby"); | 41 var usingLabeledbyAndLabelledby = getAccessibilityObject("using-labeledb
y-and-labelledby"); |
44 output("usingLabeledbyAndLabelledby.deprecatedTitle: [" + usingLabeledby
AndLabelledby.deprecatedTitle + "]"); | 42 output("usingLabeledbyAndLabelledby.name: [" + usingLabeledbyAndLabelled
by.name + "]"); |
45 output("usingLabeledbyAndLabelledby.deprecatedDescription: [" + usingLa
beledbyAndLabelledby.deprecatedDescription + "]"); | |
46 | 43 |
47 } | 44 } |
48 | 45 |
49 successfullyParsed = true; | 46 successfullyParsed = true; |
50 </script> | 47 </script> |
51 | 48 |
52 </body> | 49 </body> |
53 </html> | 50 </html> |
OLD | NEW |