| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> | 2 <meta charset="utf-8"> |
| 3 <title>HTMLInputElement#form</title> | 3 <title>HTMLInputElement#form</title> |
| 4 <link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"> | 4 <link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"> |
| 5 <script src="/resources/testharness.js"></script> | 5 <script src="/resources/testharness.js"></script> |
| 6 <script src="/resources/testharnessreport.js"></script> | 6 <script src="/resources/testharnessreport.js"></script> |
| 7 <div id="log"></div> | 7 <div id="log"></div> |
| 8 <form id="form"> | 8 <form id="form"> |
| 9 <p><button id="button">button</button> | 9 <p><button id="button">button</button> |
| 10 <p><fieldset id="fieldset">fieldset</fieldset> | 10 <p><fieldset id="fieldset">fieldset</fieldset> |
| 11 <p><input id="input"> | 11 <p><input id="input"> |
| 12 <p><keygen id="keygen"> | |
| 13 <p><object id="object">object</object> | 12 <p><object id="object">object</object> |
| 14 <p><output id="output">output</output> | 13 <p><output id="output">output</output> |
| 15 <p><select id="select"><option>select</option></select> | 14 <p><select id="select"><option>select</option></select> |
| 16 <p><textarea id="textarea">textarea</textarea> | 15 <p><textarea id="textarea">textarea</textarea> |
| 17 | 16 |
| 18 <!-- label is special: label.form is an alias for label.control.form --> | 17 <!-- label is special: label.form is an alias for label.control.form --> |
| 19 <p><label id="label">label</label> | 18 <p><label id="label">label</label> |
| 20 <p><label id="label-form" form="form">label-form</label> | 19 <p><label id="label-form" form="form">label-form</label> |
| 21 <p><label id="label-form-form2" form="form2">label-form-form2</label> | 20 <p><label id="label-form-form2" form="form2">label-form-form2</label> |
| 22 <p><label id="label-with-control">label-with-control <input></label> | 21 <p><label id="label-with-control">label-with-control <input></label> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 52 form3 = document.getElementById("form3"); | 51 form3 = document.getElementById("form3"); |
| 53 if (!form || !form2 || !form3) { | 52 if (!form || !form2 || !form3) { |
| 54 throw new TypeError("Didn't find all forms"); | 53 throw new TypeError("Didn't find all forms"); |
| 55 } | 54 } |
| 56 }); | 55 }); |
| 57 | 56 |
| 58 var listedElements = [ | 57 var listedElements = [ |
| 59 "button", | 58 "button", |
| 60 "fieldset", | 59 "fieldset", |
| 61 "input", | 60 "input", |
| 62 "keygen", | |
| 63 "object", | 61 "object", |
| 64 "output", | 62 "output", |
| 65 "select", | 63 "select", |
| 66 "textarea", | 64 "textarea", |
| 67 ]; | 65 ]; |
| 68 | 66 |
| 69 listedElements.forEach(function(localName) { | 67 listedElements.forEach(function(localName) { |
| 70 test(function() { | 68 test(function() { |
| 71 var control = document.getElementById(localName); | 69 var control = document.getElementById(localName); |
| 72 assert_equals(control.form, form); | 70 assert_equals(control.form, form); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 88 testLabel("label-with-control", form); | 86 testLabel("label-with-control", form); |
| 89 testLabel("label-for", form); | 87 testLabel("label-for", form); |
| 90 testLabel("label-with-progress", null); | 88 testLabel("label-with-progress", null); |
| 91 testLabel("label-with-meter", null); | 89 testLabel("label-with-meter", null); |
| 92 testLabel("label-for-control-form-in-form", form2); | 90 testLabel("label-for-control-form-in-form", form2); |
| 93 testLabel("label-for-control-form", form2); | 91 testLabel("label-for-control-form", form2); |
| 94 testLabel("label-in-table", null); | 92 testLabel("label-in-table", null); |
| 95 testLabel("label-in-table-with-control", form3); | 93 testLabel("label-in-table-with-control", form3); |
| 96 testLabel("label-in-table-for", form3); | 94 testLabel("label-in-table-for", form3); |
| 97 </script> | 95 </script> |
| OLD | NEW |