Skip to content

Datepicker: Added 'html >' to body selector. Fixed #8464 - Datepicker does not properly scope the body selector.#706

Merged
scottgonzalez merged 1 commit into
jquery:masterfrom
maspwr:master
Jul 27, 2012
Merged

Datepicker: Added 'html >' to body selector. Fixed #8464 - Datepicker does not properly scope the body selector.#706
scottgonzalez merged 1 commit into
jquery:masterfrom
maspwr:master

Conversation

@maspwr
Copy link
Copy Markdown
Contributor

@maspwr maspwr commented Jul 27, 2012

This pull request simply makes the body selector more explicit. This avoids an issue with multiple body elements existing which causes datepicker to break.

@scottgonzalez
Copy link
Copy Markdown
Member

That should just be document.body.

…epicker does not properly scope the body selector.
@maspwr
Copy link
Copy Markdown
Contributor Author

maspwr commented Jul 27, 2012

Updated.

@scottgonzalez scottgonzalez merged commit 1626c97 into jquery:master Jul 27, 2012
@scottgonzalez
Copy link
Copy Markdown
Member

Thanks, landed.

@charleyc
Copy link
Copy Markdown

charleyc commented Mar 4, 2014

This appears to have regressed at some point. Line 304 of jquery.ui.datepicker in version 1.10.3 now has "$("body").append(this._dialogInput);", and this again has the above bug with multiple body elements breaking the datepicker.

@scottgonzalez
Copy link
Copy Markdown
Member

Why are you generating pages with multiple bodies anyway?

@scottgonzalez
Copy link
Copy Markdown
Member

Nevermind, I looked back at the original ticket.

@scottgonzalez
Copy link
Copy Markdown
Member

Considering that even before this regressed, there were still multiple uses of 'body' instead of document.body, I'd say this wasn't even a great fix. Feel free to file a new ticket and submit a new patch that addresses this everywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants