(parent, tagName)
| 21135 | return null; |
| 21136 | } |
| 21137 | function findAncestor(parent, tagName) { |
| 21138 | for (; parent; ) { |
| 21139 | switch (parent.tag) { |
| 21140 | case 5: |
| 21141 | case 26: |
| 21142 | case 27: |
| 21143 | if (parent.type === tagName) return parent; |
| 21144 | } |
| 21145 | parent = parent.return; |
| 21146 | } |
| 21147 | return null; |
| 21148 | } |
| 21149 | function validateDOMNesting(childTag, ancestorInfo) { |
| 21150 | ancestorInfo = ancestorInfo || emptyAncestorInfoDev; |
| 21151 | var parentInfo = ancestorInfo.current; |
no outgoing calls
no test coverage detected
searching dependent graphs…