this post was submitted on 02 Sep 2023
137 points (100.0% liked)

196

16476 readers
2358 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] Psaldorn@lemmy.world 20 points 1 year ago (1 children)

Ran into low-stakes, small-scale versions of this in Javascript "live collections." CSS-based (CSS-like?) query selectors return one of JS's many Array-like object types. Just... so many partially-implemented Array variations. Anyway: Array.from( document.querySelectorAll( 'whatever' ) ) turns the initial auto-updating set into a more static list of elements.