Unlock Hidden JavaScript Power: Using $ Prefix for Safer DOM Access
A little-known fact is that valid DOM element id attributes are exposed by the DOM into the JavaScript space as properties of the window (globalThis) object. This means an element such as:
⛶id=”te...