textarea.html (967B)
1 <!DOCTYPE html> 2 <script src="/resources/testharness.js"></script> 3 <script src="/resources/testharnessreport.js"></script> 4 <script src="./resources/helper.js"></script> 5 <body> 6 <script> 7 8 var tests = [ 9 ` 10 <form action="/resource-timing/resources/document-navigated.html" method="post"> 11 <input type="submit"> 12 <textarea name="dangling"> 13 `, 14 ` 15 <div> 16 <form action="/resource-timing/resources/document-navigated.html" method="post"> 17 <input type="submit"> 18 <textarea name="dangling"> 19 `, 20 ` 21 <form action="/resource-timing/resources/document-navigated.html" method="post" id="form"> 22 <input type="submit"> 23 </form> 24 <textarea name="dangling" form="form"> 25 ` 26 ]; 27 28 tests.forEach(markup => { 29 async_test(t => { 30 var i = createFrame(`${markup}sekrit<element attribute></element>`); 31 assert_no_submission(t, i); 32 }, markup.replace(/[\n\r]/g, '')); 33 }); 34 </script>