Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#9439 closed enhancement (duplicate)

Better definition for jq escaping script

Reported by: ottuzzi Owned by:
Priority: low Milestone: 1.next
Component: selector Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:



on page[1] you can see the proposed jq script to escape period and colon characters as they are problematic as css selectors: I found that even $,{ and } need to be correctly escaped.

Here is the proposed change:

function jq(myId) {
   return '#' + myId.replace(/(:|\.|\{|\}|\$)/g,'\\$1');

Please let me know what you think about this change.

Thanks Bye Piero


Change History (2)

comment:1 Changed 12 years ago by Rick Waldron

Component: unfiledselector
Priority: undecidedlow
Resolution: duplicate
Status: newclosed

comment:2 Changed 12 years ago by Rick Waldron

Duplicate of #5241.

Note: See TracTickets for help on using tickets.