Bug Tracker

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 dmethvin

Owner: set to anonymous
Status: newpending

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.

comment:2 Changed 10 years ago by anonymous

Status: pendingnew

comment:3 in reply to:  2 Changed 10 years ago by anonymous

comment:4 Changed 10 years ago by dmethvin

Resolution: notabug
Status: newclosed

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.

Version 0, edited 10 years ago by dmethvin (next)
Note: See TracTickets for help on using tickets.