(value: unknown)
| 30 | * e.g. `<select multiple>` compiles to `{ multiple: '' }` |
| 31 | */ |
| 32 | export function includeBooleanAttr(value: unknown): boolean { |
| 33 | return !!value || value === '' |
| 34 | } |
| 35 | |
| 36 | const unsafeAttrCharRE = /[>/="'\u0009\u000a\u000c\u0020]/ |
| 37 | const attrValidationCache: Record<string, boolean> = {} |
no outgoing calls
no test coverage detected