4 <script src=
"../../resources/js-test.js"></script>
7 <p id=
"description"></p>
8 <div id=
"console"></div>
9 <form id=f
action=
"interactive-validation-formnovalidate-child.html">
10 <input type=hidden name=submitted
value=
"true">
11 <input name=i0 required
id=
"i0">
12 <button type=
"submit" formnovalidate
><span id=s
>Submit
</span></button>
15 description('Test if formnovalidate attribute works for a submit button with child elements.');
17 function startOrVerify() {
18 var query
= window
.location
.search
;
19 if (query
.indexOf('submitted=true') != -1) {
20 shouldBeTrue('location.search.indexOf("i0=") != -1');
21 debug('TEST COMPLETE');
22 if (window
.testRunner
)
23 testRunner
.notifyDone();
25 document
.getElementById('s').click();
26 testFailed('The form was not submitted.');
30 if (window
.testRunner
)
31 testRunner
.waitUntilDone();
32 window
.onload
= startOrVerify
;