File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
test/runtime/samples/attribute-boolean-indeterminate Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
- // source: https://html.spec.whatwg.org/multipage/indices.html
2
1
const _boolean_attributes = [
3
2
'allowfullscreen' ,
4
3
'allowpaymentrequest' ,
@@ -12,7 +11,6 @@ const _boolean_attributes = [
12
11
'disabled' ,
13
12
'formnovalidate' ,
14
13
'hidden' ,
15
- 'indeterminate' ,
16
14
'inert' ,
17
15
'ismap' ,
18
16
'itemscope' ,
@@ -30,4 +28,9 @@ const _boolean_attributes = [
30
28
] as const ;
31
29
32
30
export type BooleanAttributes = typeof _boolean_attributes [ number ] ;
31
+
32
+ /**
33
+ * List of HTML boolean attributes (e.g. `<input disabled>`).
34
+ * Source: https://html.spec.whatwg.org/multipage/indices.html
35
+ */
33
36
export const boolean_attributes : Set < string > = new Set ( [ ..._boolean_attributes ] ) ;
Original file line number Diff line number Diff line change 1
1
export default {
2
+ // This is a bit of a funny one — there's no equivalent attribute,
3
+ // so it can't be server-rendered
4
+ skip_if_ssr : true ,
5
+
2
6
props : {
3
7
indeterminate : true
4
8
} ,
5
9
6
10
html : "<input type='checkbox'>" ,
7
11
8
- // somehow ssr will render indeterminate=""
9
- // the hydrated html will still contain that attribute
10
- ssrHtml : "<input type='checkbox' indeterminate=''>" ,
11
-
12
12
test ( { assert, component, target } ) {
13
13
const input = target . querySelector ( 'input' ) ;
14
14
You can’t perform that action at this time.
0 commit comments