mirror of https://github.com/sveltejs/svelte
in SSR, adjust spread with boolean attributes (#2916)
parent
3f6b743dd0
commit
63ebcc8eec
@ -0,0 +1,27 @@
|
||||
// source: https://html.spec.whatwg.org/multipage/indices.html
|
||||
export const boolean_attributes = new Set([
|
||||
'allowfullscreen',
|
||||
'allowpaymentrequest',
|
||||
'async',
|
||||
'autofocus',
|
||||
'autoplay',
|
||||
'checked',
|
||||
'controls',
|
||||
'default',
|
||||
'defer',
|
||||
'disabled',
|
||||
'formnovalidate',
|
||||
'hidden',
|
||||
'ismap',
|
||||
'loop',
|
||||
'multiple',
|
||||
'muted',
|
||||
'nomodule',
|
||||
'novalidate',
|
||||
'open',
|
||||
'playsinline',
|
||||
'readonly',
|
||||
'required',
|
||||
'reversed',
|
||||
'selected'
|
||||
]);
|
Loading…
Reference in new issue