(node: Node)
| 1031 | } |
| 1032 | |
| 1033 | function isMismatchAllowedByNode(node: Node): boolean { |
| 1034 | return ( |
| 1035 | node.nodeType === DOMNodeTypes.ELEMENT && |
| 1036 | isMismatchAllowedByAttr( |
| 1037 | (node as Element).getAttribute(allowMismatchAttr), |
| 1038 | MismatchTypes.CHILDREN, |
| 1039 | ) |
| 1040 | ) |
| 1041 | } |
| 1042 | |
| 1043 | function isMismatchAllowedByVNode({ props }: VNode): boolean { |
| 1044 | const allowedAttr = props && props[allowMismatchAttr] |
no test coverage detected