test_form_attribute-2.html (1504B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=588683 5 --> 6 <head> 7 <title>Test for form attributes 2</title> 8 <script src="/tests/SimpleTest/SimpleTest.js"></script> 9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 10 </head> 11 <body> 12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=588683">Mozilla Bug 588683</a> 13 <p id="display"></p> 14 <div id="content" style="display: none"> 15 <form id='a'> 16 <form id='b'> 17 <input id='i' form='b'> 18 <script> 19 is(document.getElementById('i').form, document.getElementById('b'), 20 "While parsing, the form property should work."); 21 </script> 22 </form> 23 </form> 24 <form id='c'> 25 <form id='d'> 26 <input id='i2' form='c'> 27 <script> 28 is(document.getElementById('i2').form, document.getElementById('c'), 29 "While parsing, the form property should work."); 30 </script> 31 </form> 32 </form> 33 <!-- Let's tests without @form --> 34 <form id='e'> 35 <form id='f'> 36 <input id='i3'> 37 <script> 38 // bug 589073 39 todo_is(document.getElementById('i3').form, document.getElementById('f'), 40 "While parsing, the form property should work."); 41 </script> 42 </form> 43 </form> 44 <form id='g'> 45 <input id='i4'> 46 <script> 47 is(document.getElementById('i4').form, document.getElementById('g'), 48 "While parsing, the form property should work."); 49 </script> 50 </form> 51 </div> 52 </body> 53 </html>