Skip to main content

Search and Top Navigation

#9049 closed bug (fixed)

Opened February 01, 2013 08:51PM UTC

Closed February 01, 2013 09:52PM UTC

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

Reported by: eminence Owned by: scottgonzalez
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>

Attachments (0)
Change History (2)

Changed February 01, 2013 09:47PM UTC by scottgonzalez comment:1

milestone: none1.10.1
owner: → scott.gonzalez
status: newassigned

Changed February 01, 2013 09:52PM UTC by Scott González comment:2

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