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