Opened 10 years ago
Closed 10 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 10 years ago by
Milestone: | none → 1.10.1 |
---|---|
Owner: | set to scott.gonzalez |
Status: | new → assigned |
comment:2 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Datepicker: Escape single quotes in tooltips. Fixes #9049 - Datepicker beforeShowDay tooltip not displayed properly if single quote is used.