Issue #2997347 by markcarver, imclean, pwaterz: Using $.fn.dialog duplicates content when it lives in DOM