Index: LayoutTests/fast/dom/HTMLLabelElement/label-formAssociatedElement.html |
diff --git a/LayoutTests/fast/dom/HTMLLabelElement/label-formAssociatedElement.html b/LayoutTests/fast/dom/HTMLLabelElement/label-formAssociatedElement.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e6ac53e09776950e8b5f6a645745a87803ce985b |
--- /dev/null |
+++ b/LayoutTests/fast/dom/HTMLLabelElement/label-formAssociatedElement.html |
@@ -0,0 +1,18 @@ |
+<!DOCTYPE HTML> |
+<script src='../../../resources/js-test.js'></script> |
+<script> |
+description('As per spec labels must support form association by parser.'); |
+</script> |
+ |
+<table> |
+ <form id='form'> |
+ <tr> |
+ <td> <label id='lab'> |
+ </tr> |
+ </form> |
+</table> |
+ |
+<script> |
+shouldBeEqualToString('document.getElementById("lab").form.id', 'form'); |
+</script> |
+ |