fnagel/jquery-ui — pull request #202 by gorillamania (2011-12-09 19:22:09+00:00)
Title: Fix an Operation Aborted issue with IE 7/8 where the menu is called inline. 

Since the

isn't closed yet, IE 7/8 barfs if this is called inline instead of via $(document).ready(). More information on why Microsoft doesn't allow you to append to elements before they are closed: See http://support.microsoft.com/kb/927917

Note that this is fixed in IE 9, and does not show up when using the IE 7/8 compatibility mode. You must be running the actual IE 7/8.

Simple use case to replicate:

...

This patch fixes the problem by delaying the appending of the hidden ul list to the body until *after* document.ready(), and it solved our problems.