File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 1
- <!doctype html>
2
- < html >
1
+ <!DOCTYPE html>
2
+ < html lang =" en " >
3
3
< head >
4
4
< title > <auto-check> element</ title >
5
- < style > auto-check {display : block;}</ style >
5
+ < style >
6
+ auto-check {
7
+ display : block;
8
+ }
9
+ </ style >
6
10
</ head >
7
11
< body >
8
12
< h1 > Simple form</ h1 >
9
13
< p > Input 422 for an error response.</ p >
10
14
< form >
15
+ < label for ="simple-field "> Input</ label >
11
16
< auto-check csrf ="foo " src ="/demo " required >
12
- < input autofocus name ="foo " required >
17
+ < input id =" simple-field " autofocus name ="foo " required / >
13
18
< code class ="state "> </ code >
14
19
</ auto-check >
15
20
< button > submit</ button >
@@ -18,8 +23,9 @@ <h1>Simple form</h1>
18
23
< h1 > Form that has custom validity messages</ h1 >
19
24
< p > Input 422 for an error response.</ p >
20
25
< form id ="custom ">
26
+ < label for ="custom-field "> Input</ label >
21
27
< auto-check csrf ="foo " src ="/demo " required >
22
- < input autofocus class ="json " name ="foo " required >
28
+ < input id =" custom-field " autofocus class ="json " name ="foo " required / >
23
29
< code class ="state "> </ code >
24
30
</ auto-check >
25
31
< button > submit</ button >
@@ -28,7 +34,7 @@ <h1>Form that has custom validity messages</h1>
28
34
< script >
29
35
let focusedInput
30
36
const nativeFetch = window . fetch
31
- const fakeFetch = function ( _ , options ) {
37
+ const fakeFetch = function ( _ , options ) {
32
38
const path = `https://httpbin.org/status/${ options . body . get ( 'value' ) === '422' ? '422' : '200' } `
33
39
return nativeFetch ( path , options )
34
40
}
You can’t perform that action at this time.
0 commit comments