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

Function isStringifiableAttr

packages/compiler-dom/src/transforms/stringifyStatic.ts:189–199  ·  view source on GitHub ↗
(name: string, ns: Namespaces)

Source from the content-addressed store, hash-verified

187
188const dataAriaRE = /^(?:data|aria)-/
189const isStringifiableAttr = (name: string, ns: Namespaces) => {
190 return (
191 (ns === Namespaces.HTML
192 ? isKnownHtmlAttr(name)
193 : ns === Namespaces.SVG
194 ? isKnownSvgAttr(name)
195 : ns === Namespaces.MATH_ML
196 ? isKnownMathMLAttr(name)
197 : false) || dataAriaRE.test(name)
198 )
199}
200
201const isNonStringifiable = /*@__PURE__*/ makeMap(
202 `caption,thead,tr,th,tbody,td,tfoot,colgroup,col`,

Callers 1

walkFunction · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected