Skip to content

Commit 0de1c14

Browse files
authored
Update web_src/js/utils/dom.ts
1 parent 676a0c0 commit 0de1c14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/utils/dom.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export function queryElemChildren<T extends Element>(parent: Element | ParentNod
8989
}
9090

9191
// 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
92+
// in the future, all "queryElems(document, ...)" should be refactored to use a more specific parent if the targets are not for page-level components.
9393
export function queryElems<T extends HTMLElement>(parent: Element | ParentNode, selector: string, fn?: ElementsCallback<T>): ArrayLikeIterable<T> {
9494
return parent ? applyElemsCallback<T>(parent.querySelectorAll(selector), fn) : [];
9595
}

0 commit comments

Comments
 (0)