Opened 11 years ago
Closed 11 years ago
#8464 closed bug (fixed)
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).
Change History (2)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Datepicker: Changed body selector to document.body. Fixed #8464 - Datepicker does not properly scope the body selector.
Changeset: 1626c97caa920d72d0bb7501b240e64538ed41cd
Pull request open, https://github.com/jquery/jquery-ui/pull/706.