Opened 6 years ago

Closed 6 years ago

#9049 closed bug (fixed)

Datepicker beforeShowDay tooltip not displayed properly if single quote is used.

Reported by: eminence Owned by: Scott González
Priority: minor Milestone: 1.10.1
Component: ui.datepicker Version: 1.10.0
Keywords: Cc:
Blocked by: Blocking:

Description

I am using third entry in the array returned by beforeShowDay that becomes the cell's title to show tooltip.

When single quote is there in the title it breaks even when the string is escaped.

E.g.

If title is Example' day. Below is the way title is displayed - Only Example is shown, day' is shown as an attribute with blank value.

<td class=" ui-datepicker-unselectable ui-state-disabled us_day" day'="" title="Example"> <span class="ui-state-default">18</span>

Change History (2)

comment:1 Changed 6 years ago by Scott González

Milestone: none1.10.1
Owner: set to scott.gonzalez
Status: newassigned

comment:2 Changed 6 years ago by Scott González

Resolution: fixed
Status: assignedclosed

Datepicker: Escape single quotes in tooltips. Fixes #9049 - Datepicker beforeShowDay tooltip not displayed properly if single quote is used.

Changeset: df179542cc6593b1816d487c72c470a73940ff11

Note: See TracTickets for help on using tickets.