Opened 7 years ago
Closed 6 years ago
#47964 closed defect (bug) (invalid)
jQuery Syntax Error when using a colon character in the widget class
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | Customize | Keywords: | reporter-feedback |
| Focuses: | javascript, administration | Cc: |
Description
Some CSS frameworks uses a colon character when defining CSS classes. For example, tailwindcss uses it for Media Queries.
When such class is added to the widget, the Customizer shows a jQuery error:
Uncaught Error: Syntax error, unrecognized expression: unsupported pseudo: w-full
Steps to reproduce:
- Activate a default WordPress theme, Twenty Nineteen;
- Add
md:w-fullclass to site widgets; - Go to the Customizer;
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Hey @taskotr — are you still able to replicate this issue? If so, can you provide a code sample that causes it with a fresh installation?