Skip to main content

Search and Top Navigation

#8464 closed bug (fixed)

Opened July 27, 2012 05:21AM UTC

Closed July 27, 2012 08:54PM UTC

Datepicker does not properly scope the body selector

Reported by: maspwr Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.datepicker Version: 1.8.21
Keywords: Cc:
Blocked by: Blocking:
Description

When initializing the date picker, jQuery UI looks for the <body> element to append the '#ui-datepicker-div' element to. This lookup is performed using $(document).find('body') [jquery.ui.datepicker.js:1699]. Unfortunately this could return multiple <body> elements which will break the date picker functionality. Take, for example, the case when using the <foreignobject> element to render content within an <svg> element (http://www.w3.org/TR/SVG/extend.html).

Attachments (0)
Change History (2)

Changed July 27, 2012 06:50AM UTC by maspwr comment:1

Changed July 27, 2012 08:54PM UTC by Mark Aaron Shirley comment:2

resolution: → fixed
status: newclosed

Datepicker: Changed body selector to document.body. Fixed #8464 - Datepicker does not properly scope the body selector.

Changeset: 1626c97caa920d72d0bb7501b240e64538ed41cd