StaticElementList* found_elements = document->QuerySelectorAll(
AtomicString(serialized_anchor.selector), exception_state);
js call
document.querySelectorAll('*').forEach(function(node) {
console.log(node);
});
c++
StaticElementList* SelectorQuery::QueryAll(ContainerNode& root_node) const {
QUERY_STATS_RESET();
CheckPseudoHasCacheScope check_pseudo_has_cache_scope(
&root_node.GetDocument(), /*within_selector_checking=*/false);
NthIndexCache nth_index_cache(root_node.GetDocument());
HeapVector<Member<Element>> result;
Execute<AllElementsSelectorQueryTrait>(root_node, result);
return StaticElementList::Adopt(result);
}