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).
Pull request open, https://github.com/jquery/jquery-ui/pull/706.