We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 676a0c0 commit 0de1c14Copy full SHA for 0de1c14
web_src/js/utils/dom.ts
@@ -89,7 +89,7 @@ export function queryElemChildren<T extends Element>(parent: Element | ParentNod
89
}
90
91
// it works like parent.querySelectorAll: all descendants are selected
92
-// in the future, all "queryElems(document, ...)" should be refactored to use a more specific parent
+// in the future, all "queryElems(document, ...)" should be refactored to use a more specific parent if the targets are not for page-level components.
93
export function queryElems<T extends HTMLElement>(parent: Element | ParentNode, selector: string, fn?: ElementsCallback<T>): ArrayLikeIterable<T> {
94
return parent ? applyElemsCallback<T>(parent.querySelectorAll(selector), fn) : [];
95
0 commit comments