(parent)
| 876 | |
| 877 | // 检测子元素中是否包含指定标签以外的元素 |
| 878 | function detectChildMeta(parent) { |
| 879 | let child = parent.firstChild; |
| 880 | while (child) { |
| 881 | if (child.nodeType === Node.ELEMENT_NODE && !detectChildMetaSet.has(child.nodeName.toLowerCase())) { |
| 882 | return false; |
| 883 | } |
| 884 | child = child.nextSibling; |
| 885 | } |
| 886 | return true; |
| 887 | } |
| 888 | |
| 889 | // endregion |
| 890 |