MCPcopy Index your code
hub / github.com/Bistutu/FluentRead / detectChildMeta

Function detectChildMeta

userscripts.js:878–887  ·  view source on GitHub ↗
(parent)

Source from the content-addressed store, hash-verified

876
877// 检测子元素中是否包含指定标签以外的元素
878function 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

Callers 1

getTransNodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected