release: WRNexusJS 0.6.0

This commit is contained in:
2026-08-01 01:09:58 +05:30
parent 3e565e8d03
commit 687d345882
502 changed files with 33038 additions and 11358 deletions
+10
View File
@@ -0,0 +1,10 @@
export function collectRefs(root: ParentNode): Record<string, Element> {
const refs: Record<string, Element> = {};
if (root instanceof Element && root.hasAttribute("data-ref"))
refs[root.getAttribute("data-ref")!] = root;
root.querySelectorAll("[data-ref]").forEach((element) => {
const name = element.getAttribute("data-ref");
if (name) refs[name] = element;
});
return refs;
}