GoogleChromeLabs / ProjectVisBug

FireBug for designers › Edit any webpage, in any state https://a.nerdy.dev/gimme-visbug
https://visbug.web.app
Apache License 2.0
5.47k stars 287 forks source link

Problem with the selection of elements whose classes contain special characters #636

Closed JabSYsEmb closed 2 months ago

JabSYsEmb commented 2 months ago

The on_expand_selection callback function almost doesn't work for websites styled by tailwind as special characters need to escaped by double backslash to be selectable, for instance bg-[green] needs to be queried as bg-\\[green\\] otherwise the querySelector() will throw an Error.

Recording 2024-07-14 at 18 22 52

argyleink commented 2 months ago

fixed in v0.4.7 🎉