Elektrine lite

← Feed

@robinwhittleton@front-end.social

Post #2550962

2026-05-07 11:27 UTC

Today’s front-end learning: a valid ID that’s not a valid selector (e.g. one with a `\,` in it) can be made selectable with querySelector by first passing it through CSS.escape. https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape_static

Replies (0)

No replies.