|
9 | 9 | </style> |
10 | 10 | </head> |
11 | 11 | <body> |
12 | | - <h1>Simple form</h1> |
13 | | - <p>Input 422 for an error response.</p> |
14 | | - <form> |
15 | | - <label for="simple-field">Input</label> |
16 | | - <auto-check csrf="foo" src="/demo" required> |
17 | | - <input id="simple-field" autofocus name="foo" required /> |
18 | | - <code class="state"></code> |
19 | | - </auto-check> |
20 | | - <button>submit</button> |
21 | | - </form> |
| 12 | + <main> |
| 13 | + <h1>Simple form</h1> |
| 14 | + <p>Input 422 for an error response.</p> |
| 15 | + <form> |
| 16 | + <label for="simple-field">Input</label> |
| 17 | + <auto-check csrf="foo" src="/demo" required> |
| 18 | + <input id="simple-field" autofocus name="foo" required /> |
| 19 | + <code class="state"></code> |
| 20 | + </auto-check> |
| 21 | + <button>submit</button> |
| 22 | + </form> |
22 | 23 |
|
23 | | - <h1>Form that has custom validity messages</h1> |
24 | | - <p>Input 422 for an error response.</p> |
25 | | - <form id="custom"> |
26 | | - <label for="custom-field">Input</label> |
27 | | - <auto-check csrf="foo" src="/demo" required> |
28 | | - <input id="custom-field" autofocus class="json" name="foo" required /> |
29 | | - <code class="state"></code> |
30 | | - </auto-check> |
31 | | - <button>submit</button> |
32 | | - </form> |
| 24 | + <h1>Form that has custom validity messages</h1> |
| 25 | + <p>Input 422 for an error response.</p> |
| 26 | + <form id="custom"> |
| 27 | + <label for="custom-field">Input</label> |
| 28 | + <auto-check csrf="foo" src="/demo" required> |
| 29 | + <input id="custom-field" autofocus class="json" name="foo" required /> |
| 30 | + <code class="state"></code> |
| 31 | + </auto-check> |
| 32 | + <button>submit</button> |
| 33 | + </form> |
| 34 | + </main> |
33 | 35 |
|
34 | 36 | <script> |
35 | 37 | let focusedInput |
|
0 commit comments