Graduation / ui /node_modules /svelte /src /shared /boolean_attributes.js
DuyTa's picture
Upload folder using huggingface_hub
bc20498 verified
raw
history blame
684 Bytes
const _boolean_attributes = /** @type {const} */ ([
'allowfullscreen',
'allowpaymentrequest',
'async',
'autofocus',
'autoplay',
'checked',
'controls',
'default',
'defer',
'disabled',
'formnovalidate',
'hidden',
'inert',
'ismap',
'loop',
'multiple',
'muted',
'nomodule',
'novalidate',
'open',
'playsinline',
'readonly',
'required',
'reversed',
'selected'
]);
/**
* List of HTML boolean attributes (e.g. `<input disabled>`).
* Source: https://html.spec.whatwg.org/multipage/indices.html
*
* @type {Set<string>}
*/
export const boolean_attributes = new Set([..._boolean_attributes]);
/** @typedef {typeof _boolean_attributes[number]} BooleanAttributes */