MCPcopy
hub / github.com/vuejs/core / includeBooleanAttr

Function includeBooleanAttr

packages/shared/src/domAttrConfig.ts:32–34  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

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

Callers 4

ssrRenderDynamicAttrFunction · 0.90
patchAttrFunction · 0.90
patchDOMPropFunction · 0.90
propHasMismatchFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected