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.
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 instancebg-[green]
needs to be queried asbg-\\[green\\]
otherwise thequerySelector()
will throw an Error.