(name: string, ns: Namespaces)
| 187 | |
| 188 | const dataAriaRE = /^(?:data|aria)-/ |
| 189 | const 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 | |
| 201 | const isNonStringifiable = /*@__PURE__*/ makeMap( |
| 202 | `caption,thead,tr,th,tbody,td,tfoot,colgroup,col`, |