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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/accessibility/link-inside-label-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/accessibility/link-inside-label.html
diff --git a/LayoutTests/accessibility/link-inside-label.html b/LayoutTests/accessibility/link-inside-label.html
new file mode 100644
index 0000000000000000000000000000000000000000..730e4f9544fe49cbd31a8602aef3125cb5d95d19
--- /dev/null
+++ b/LayoutTests/accessibility/link-inside-label.html
@@ -0,0 +1,31 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+</script>
+</head>
+<body>
+
+<label>
+Row 1
+<input type="checkbox">
+<a href="#" id="a1">More info</a>
+<button>Do something</button>
+</label>
+
+<p id="description">This tests that a link element present inside a label element is accessible when label has more than one child.</p>
+<div id="result"></div>
+
+<script>
+if (window.accessibilityController) {
+ var test = document.getElementById("a1");
+ test.focus();
+ test = accessibilityController.focusedElement;
+ result.innerText = "\nRole was:" + test.role;
+}
+</script>
+
+</body>
+</html>
« 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