Opened 10 years ago
Closed 10 years ago
#13167 closed bug (notabug)
jQuery tries to evaluate some CSS classes instead of using as string
Reported by: | anonymous | Owned by: | anonymous |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | git |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Words such as Естетика are converted to something like .%d0%b5%d1%81%d1%82%d0%b5%d1%82%d0%b8%d0%ba%d0%b0 (CSS class) using popular sanitizers (if you'll use this as WordPress category, it will create such slug/nicename for that category which is supposed to be safe, English version to use in various places in the code).
Although it seems like a valid class name jQuery tries to evaluate that instead of using as a string.
Change History (4)
comment:1 Changed 10 years ago by
Owner: | set to anonymous |
---|---|
Status: | new → pending |
comment:3 Changed 10 years ago by
comment:4 Changed 10 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
It's not being executed, it's being rejected as an invalid selector. Here is your selector, it appears to be escaped using URL encoding rules:
'.%d0%b5%d1%81%d1%82%d0%b5%d1%82%d0%b8%d0%ba%d0%b0'
Here are the CSS selector escaping rules:
http://www.w3.org/TR/CSS21/syndata.html#characters
You'll need to escape the selector properly.
Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.
Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.