Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: LayoutTests/accessibility/link-inside-label.html

Issue 795833003: A link inside a <label> element is not accessible (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modifying testcase to be more readable Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/accessibility/link-inside-label-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
7 </script>
8 </head>
9 <body>
10
11 <label>
12 Row 1
13 <input type="checkbox">
14 <a href="#" id="a1">More info</a>
15 <button>Do something</button>
16 </label>
17
18 <p id="description">This tests that a link element present inside a label elemen t is accessible when label has more than one child.</p>
19 <div id="result"></div>
20
21 <script>
22 if (window.accessibilityController) {
23 var test = document.getElementById("a1");
24 test.focus();
25 test = accessibilityController.focusedElement;
26 result.innerText = "\nRole was:" + test.role;
27 }
28 </script>
29
30 </body>
31 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/accessibility/link-inside-label-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698