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> |